jars causing problems

Herrick Abba (habba@cs.newcastle.edu.au)
Mon, 07 Dec 1998 17:50:34 +1100

Hi,
I have been experiencing problems when trying to execute applets in
jars. I have an applet which works when executed under appletviewer as
non-jared class files. However when I jar the necessary files (jar cvf
myJarFile.jar myClasses) and attempt to run it under appletviewer I get
the following exceptions:

java.net.MalformedURLException: unknown protocol: c
at java.net.URL.<init>(Compiled Code)
at sun.applet.AppletResourceLoader.loadJar(Compiled Code)
at
sun.applet.AppletResourceLoader.loadJar(AppletResourceLoader.java:134)
at sun.applet.AppletPanel.loadJarFiles(Compiled Code)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:391)
at sun.appletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:466)

followed by:
java.lang.IllegalAccessError: oneOfMyClasses
at MyApplet.init(...)

The only thing that is different from the version that works is the
presence of the jar file.
I am using JDK 1.1.7A under Windows NT4.0.
Do you have any pointers/advice as to what may be causing these
problems?
Thank you.
Herrick Abba