Re: jars causing problems

schemers@Eng
Sun, 6 Dec 1998 23:02:21 -0800 (PST)

Herrick Abba writes:
> 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

Since it is saying "unknown protocol: c", I would guess you are
trying to load the jar file from the "c" drive, and when you
type in c:\some\path\foo.jar it looks like a protocol. If you are trying to
load from a file, you should use:

file:c:/some/path/foo.jar

roland