Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError

 
srikanth arroju
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i run a bat file of the installer at the command prompt



 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java -jar doesn't use the environment classpath setting. You need to specify the classpath in the jar's manifest file.
[ April 25, 2008: Message edited by: Joanne Neal ]
 
srikanth arroju
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually iam installing the application using install4j tool.when i run the jar command the application should run.i cannot hardcode the classpath setting
because it may run on my system but on other system the classpath will be different.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So install the required jar files in the same directory as InstaSecure.jar and use relative paths names in your classpath.
 
srikanth arroju
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But problem is the required jar files are different for different software version which the user may be selecting.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well your install program will have to sort that out. All I'm saying is, if you want to use the -jar option of java then you have to specify your classpath in the manifest file. If this is a problem then don't use the -jar option.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic