Problems with java applet "not initied"

Hello everybody, when compiling I get the following warning:

Note: braccio2.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

And re-compiling with the -Xlint:deprecation I get this message:

braccio2.java:101: warning: [deprecation] action(java.awt.Event,java.lang.Object) in java.awt.Component has been deprecated

public boolean action(Event event, Object what) {

^

1 warning

I tried to find out the problem looking at the deprecated list but I still can't solve the problem.

Any suggestions are really the welcome! Thanks.

Message was edited by:

FaBYOB

[701 byte] By [FaBYOBa] at [2007-10-2 23:02:23]
# 1

Ok, I solved the problem, i just changed "action" with "ActionListener" and the warning message disappeared!

Now I have another problem: when I try to run the applet I get an error message that the applet is not initied and the log file is the following:

java.lang.NoClassDefFoundError: vrml/external/exception/InvalidEventInException

at java.lang.Class.getDeclaredConstructors0(Native Method)

at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)

at java.lang.Class.getConstructor0(Class.java:2640)

at java.lang.Class.newInstance0(Class.java:321)

at java.lang.Class.newInstance(Class.java:303)

at sun.applet.AppletPanel.createApplet(AppletPanel.java:712)

at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1733)

at sun.applet.AppletPanel.runLoader(AppletPanel.java:641)

at sun.applet.AppletPanel.run(AppletPanel.java:320)

at java.lang.Thread.run(Thread.java:595)

Exception in thread "Thread-5" java.lang.NullPointerException

at sun.plugin.util.GrayBoxPainter.showLoadingError(GrayBoxPainter.java:153)

at sun.plugin.AppletViewer.showAppletException(AppletViewer.java:1904)

at sun.applet.AppletPanel.runLoader(AppletPanel.java:673)

at sun.applet.AppletPanel.run(AppletPanel.java:320)

at java.lang.Thread.run(Thread.java:595)

/usr/share/themes/Clearlooks/gtk-2.0/gtkrc:58: Engine "clearlooks" is unsupported, ignoring

java.lang.NoClassDefFoundError: vrml/external/exception/InvalidEventInException

at java.lang.Class.getDeclaredConstructors0(Native Method)

at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)

at java.lang.Class.getConstructor0(Class.java:2640)

at java.lang.Class.newInstance0(Class.java:321)

at java.lang.Class.newInstance(Class.java:303)

at sun.applet.AppletPanel.createApplet(AppletPanel.java:712)

at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1733)

at sun.applet.AppletPanel.runLoader(AppletPanel.java:641)

at sun.applet.AppletPanel.run(AppletPanel.java:320)

at java.lang.Thread.run(Thread.java:595)

Exception in thread "Thread-9" java.lang.NullPointerException

at sun.plugin.util.GrayBoxPainter.showLoadingError(GrayBoxPainter.java:153)

at sun.plugin.AppletViewer.showAppletException(AppletViewer.java:1904)

at sun.applet.AppletPanel.runLoader(AppletPanel.java:673)

at sun.applet.AppletPanel.run(AppletPanel.java:320)

at java.lang.Thread.run(Thread.java:595)

java.lang.NullPointerException

at sun.plugin.util.GrayBoxPainter.showLoadingError(GrayBoxPainter.java:153)

at sun.plugin.AppletViewer.showAppletStatus(AppletViewer.java:1837)

at sun.applet.AppletPanel.run(AppletPanel.java:365)

at java.lang.Thread.run(Thread.java:595)

Exception in thread "thread applet-braccio2.class" java.lang.NullPointerException

at sun.plugin.util.GrayBoxPainter.showLoadingError(GrayBoxPainter.java:153)

at sun.plugin.AppletViewer.showAppletException(AppletViewer.java:1904)

at sun.applet.AppletPanel.run(AppletPanel.java:529)

at java.lang.Thread.run(Thread.java:595)

...

and more.

It seems that I don't insered the java libraries in classpath but I did!

This is the compiling line I used:

javac -classpath vrml.jar:plugin.jar braccio2.java

and in plugin.jar there are the directories: netscape and sun with all the classes..

thanks for your help!

FaBYOBa at 2007-7-14 6:16:26 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...