Applet Class Not Found Exceptions
I think I've got my applet code straightened out, and my JDK is configured properly...but I keep getting this in java console no matter what other classes I try to use:
Opening http://rampa01_nt/test/attachApplet.class no proxy
Opening http://rampa01_nt/test/javax/swing/JApplet.class no proxy
load: class attachApplet.class not found.
java.lang.ClassNotFoundException: attachApplet
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:385)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:462)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:395)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:474)
Can someone please explain to me how the java environment works? An example of environment variable paths and an associated dir structure might help me see what I am doing wrong. Thank you.
Re: Applet Class Not Found Exceptions
are you using JDK1.2?
If yes, are you using 'applet' tag to load the applet?
If you are using JDK1.2, u should be using 'object' tag instead. You will get its help in JDK1.2 documentation (in ToolDocs section-appletviewer section-'appletviewer tags' link)
- UnicMan
http://members.tripod.com/unicman
Re: Applet Class Not Found Exceptions
no, I'm using object tag...already ran my html thru the converter.
Re: Applet Class Not Found Exceptions
Then it should work actually.
Just in case if you haven't checked-out this before... Please check CLASSPATH environment is set. If it is set, check if it has '\jdk1.2\jre\lib\rt.jar' included.
Note that in NT you will have to change CLASSPATH environment thro' '\control panel\system'. Doing it from MS-DOS will be local to that MS-DOS instance.
- UnicMan
http://members.tripod.com/unicman
Re: Applet Class Not Found Exceptions
class path is ok...think I'm getting further...can now run the application class (jframe) from my applet class...but it comes up as a blank frame (no images, no resource file strings, etc.)...but not java console errors and no applet viewer errors. So I downloaded JBuilder 3.5 foundation and can get it to run there almost ok, except no images...this all has to be environmental somewhere along the line, I just don't know what yet.