S
srdjan
I have a package named "my_package" and a applet class in it called
"MyNumber". I'm calling it from my .html file like this:
<applet
codebase ="."
code ="my_package.MyNumber.class"
archive ="my_package.jar"
....
</applet>
When I try to run the .html file I get:
- java.lang.ClassNotFoundException: my_package.MyNumber.class
....
and
- Caused by: java.io.FileNotFoundException:
C:\my_package\my_package\MyNumber\class.class (The system cannot find the
path specified)
....
The .jar file and the .html file are in the same directory. The .jar file
was made "above" the "\my_package" directory like this:
jar cf my_package.jar my_package
How should I make the .jar file and where should I put it relative to the
..html file? Any help? Please.
srdjan
"MyNumber". I'm calling it from my .html file like this:
<applet
codebase ="."
code ="my_package.MyNumber.class"
archive ="my_package.jar"
....
</applet>
When I try to run the .html file I get:
- java.lang.ClassNotFoundException: my_package.MyNumber.class
....
and
- Caused by: java.io.FileNotFoundException:
C:\my_package\my_package\MyNumber\class.class (The system cannot find the
path specified)
....
The .jar file and the .html file are in the same directory. The .jar file
was made "above" the "\my_package" directory like this:
jar cf my_package.jar my_package
How should I make the .jar file and where should I put it relative to the
..html file? Any help? Please.
srdjan