Results 1 to 2 of 2
- 01-27-2011, 09:10 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 1
- Rep Power
- 0
"NoClassDefFoundError" on unix .. please help
Hi, I am facing "NoClassDefFoundError" on unix even after setting up the classpath correctly.It seems the classes inside the package cannot be accessed.Just for a try, I changed my class package to default and it started working , but for third party classes being reffered inside my class,I cannot do this.
The same code is working on windows.
Here are the details:
Windows:
----------
java -classpath .\src;.\lib\bcprov-jdk15-145.jar;.\lib\iaik_jce.jar;.\lib\ibmjcefw.jar PVBulkPinReset "PV"
Unix
----------
All my classes and jars are under "/export/DC/miramo/jre/lib"
PENDOCJVM=/export/DC/miramo/jre/bin
CLASSPATH=/export/DC/miramo/jre/lib
myclasspath=$CLASSPATH:$CLASSPATH/bcprov-jdk15-145.jar:$CLASSPATH/iaik_jce.jar:$CLASSPATH/ibmjcefw.jar
#Call the progra,
$PENDOCJVM/java -classpath $myclasspath PVBulkPinReset "PV"
This CALL throws: Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
at PVBulkPinReset.main(PVBulkPinReset.java:28)
Please help !!
Thanks in advance
Jiten
- 01-27-2011, 11:37 AM #2
Hi, You can try run program with use option -verbose and You can look what class you load, when you run program.
as well as I advise you use any build tool. for example ant. and create jar with manifest file.
see Tutorial: Hello World with Apache AntSkype: petrarsentev
http://TrackStudio.com
Similar Threads
-
Exception in thread "main" java.lang.NoClassDefFoundError: client
By fithous in forum New To JavaReplies: 1Last Post: 04-02-2009, 09:50 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM -
Exception in thread "main" java.lang.NoClassDefFoundError: welcome
By MadDogMullan in forum New To JavaReplies: 8Last Post: 09-18-2008, 12:55 PM -
Exception in thread "main" java.lang.NoClassDefFoundError: client Help
By b000m in forum New To JavaReplies: 6Last Post: 08-18-2008, 06:44 AM -
Exception in thread "main" java.lang.NoClassDefFoundError
By baltimore in forum New To JavaReplies: 1Last Post: 08-06-2007, 06:07 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks