Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet insights?  RSS feed

 
Jon Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following player, seems to be missing out a 'Player' and has a few typos.

This brings about a couple of questions, which are not related to this player, but I wonder anyway..

1. Do changes in the API seem "smooth" or do they commonly require a lot of refactoring?
What are the main reasons for refactoring (i.e. fine-tuning and performance, cosmetic factors, major issues)?

2. Assuming you are a seasoned Java Developer, what is your learning experience from Java 1.4 to Java 1.6?
What problems does Java excel at?

3. Is it technically feasible to upgrade code from Java 1.4 to the latest versions? Why? Why not?
What is your perceived advantage of keeping up-to-date with the latest code releases?
Do you find that you have to write your own custom libraries? How often? In which (business) cases?

4. Without hoping not to insult anyone's preference, do you consider it possible to have an implementation that is a hybrid of Java and other languages, such as Java and C++, or Java and .NET? How "good" is it?

5. What are your comments about legacy systems developed in Java 1.4 or perhaps earlier. Do they still "work"? Are there a lot of them?
Do business make it a priority to update the code?

Source code: http://download.oracle.com/javase/1.4.2/docs/guide/plugin/developer_guide/SimplePlayerApplet.java.html

Output
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:40: package javax.media does not exist
import javax.media.*;
^

C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:54: cannot find symbol
symbol: class ControllerListener
public class SimplePlayerApplet extends Applet implements ControllerListener {
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:57: cannot find symbol
symbol : class Player
location: class SimplePlayerApplet
Player player = null;
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:181: cannot find symbol
symbol : class ControllerEvent
location: class SimplePlayerApplet
public synchronized void controllerUpdate(ControllerEvent event) {
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:87: cannot find symbol
symbol : class MediaLocator
location: class SimplePlayerApplet
MediaLocator mrl = null;
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:105: cannot find symbol
symbol : class MediaLocator
location: class SimplePlayerApplet
if ((mrl = new MediaLocator(mediaFile)) == null)
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:121: cannot find symbol
symbol : variable Manager
location: class SimplePlayerApplet
player = Manager.createPlayer(mrl);
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:122: cannot find symbol
symbol : class NoPlayerException
location: class SimplePlayerApplet
} catch (NoPlayerException e) {
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:189: cannot find symbol
symbol : class RealizeCompleteEvent
location: class SimplePlayerApplet
if (event instanceof RealizeCompleteEvent) {
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:224: cannot find symbol
symbol : class CachingControlEvent
location: class SimplePlayerApplet
} else if (event instanceof CachingControlEvent) {
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:225: cannot find symbol
symbol : variable Controller
location: class SimplePlayerApplet
if (player.getState() > Controller.Realizing)
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:229: cannot find symbol
symbol : class CachingControlEvent
location: class SimplePlayerApplet
CachingControlEvent e = (CachingControlEvent) event;
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:229: cannot find symbol
symbol : class CachingControlEvent
location: class SimplePlayerApplet
CachingControlEvent e = (CachingControlEvent) event;
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:230: cannot find symbol
symbol : class CachingControl
location: class SimplePlayerApplet
CachingControl cc = e.getCachingControl();
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:240: cannot find symbol
symbol : class EndOfMediaEvent
location: class SimplePlayerApplet
} else if (event instanceof EndOfMediaEvent) {
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:243: cannot find symbol
symbol : class Time
location: class SimplePlayerApplet
player.setMediaTime(new Time(0));
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:245: cannot find symbol
symbol : class ControllerErrorEvent
location: class SimplePlayerApplet
} else if (event instanceof ControllerErrorEvent) {
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:248: cannot find symbol
symbol : class ControllerErrorEvent
location: class SimplePlayerApplet
Fatal(((ControllerErrorEvent)event).getMessage());
^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\SimplePlayerApplet.java:249: cannot find symbol
symbol : class ControllerClosedEvent
location: class SimplePlayerApplet
} else if (event instanceof ControllerClosedEvent) {
^
19 errors
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As your questions aren't specifically related to applets or the source code you posted, I will move this topic to Beginning Java.
Additionally, I've stripped to source code from your post and added a link to it instead in case anyone's interested.
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And just in case you're wondering, the compiler errors are related to a missing library, namely JMF
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!