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

NoClassdefFound in Unix

 
Swapnil Shroff
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running a program like



And I am getting an error as



However I have added all the jars in cp. I also tried using -classpath.
Any idea why the problem. thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34423
347
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swapnil,
Have you tried putting the classpath in quotes as follows?

java -cp "JMdsAPI.jar:JTib.jar:jcachetek.jar:util.concurrent.jar:junit.jar:log4j-1.2.14.jar" com.jpmorgan.servers.cachetek.junit.JCachetekMDSTest
 
Kevin Smither
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try fully qualifying the path to the jars, such as...

java -classpath /libs/log4j-1.2.14.jar

etc. etc. The issue is that it can't find the jar so there are only 2 possibilities, the full path to the jar needs to be specified or the jar does not exist.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic