Jar question# Java - 爪哇娇娃
b*e
1 楼
I have put several java classes in a Jar file, one class
is the main entry, so I also put the main class information
in the manifest file.
However, when my class call j2ee classes (say java mail class),
"java -jar xyz.jar" always report can't file class error,
even i put -classpath c:\j2eeinstalpath\lib\j2ee.jar in the command.
There is no problem if i don't use jar file at all.
I wonder if this is the limitation of Jar? Thanks.
is the main entry, so I also put the main class information
in the manifest file.
However, when my class call j2ee classes (say java mail class),
"java -jar xyz.jar" always report can't file class error,
even i put -classpath c:\j2eeinstalpath\lib\j2ee.jar in the command.
There is no problem if i don't use jar file at all.
I wonder if this is the limitation of Jar? Thanks.