Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

unable to access the contents of the jar file which is in classpath

user10696492Nov 10 2008 — edited Nov 10 2008
Hey Java Gurus,

I am including a jar file in my classpath and somehow it is not able to get included in the class path and it gives. The may I have included in the class path is this

$JAVA_HOME/bin/java -classpath "/home/at59597/java/lib/commons-lang-2.3.jar:$CLASSPATH" com.PLCalculator $*

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/builder/ToStringStyle

I am not able to understand why this is happening. I have checked the permissions of the /home/at59597/java/lib/commons-lang-2.3.jar and I have the execute permissions of this jar file.

Is there any way to debug this problem?

Thanks
Abhishek
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2008
Added on Nov 10 2008
8 comments
3,701 views