Class Not Found on executing the java command from command prompt but working through eclipse -
we trying run jar file.
java -jar test.jar the output shows mainclassnotfound exception. same working when tried through eclipse. have issue through command prompt.
test.jar created through ant build list of java classes , inner jars. directory like,
application
mainclass otherclasses lib -- contains third party jar - cryptojce.jar third party jar requires dependant jars - cryptocommon , jce jars all these jars places in lib folder
when build & execute through eclipse, ant script create test.jar includes java classes , third party jars classes. mainclass called , third party jars included in mainclass working without issues.
but when tried same in command prompt, using
java -jar test.jar we getting mainclassnotfound exception. issue happens when include third party jar cryptojce.jar in ant script using
<zipfileset src="lib/cryptojce.jar" includes="**" /> as jar mandatory, please provide input on how can resolve issue.
regards hari
Comments
Post a Comment