Results 1 to 2 of 2
  1. #1
    jpanjwani is offline Member
    Join Date
    Jan 2011
    Posts
    1
    Rep Power
    0

    Default "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

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    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 Ant
    Skype: petrarsentev
    http://TrackStudio.com

Similar Threads

  1. Replies: 1
    Last Post: 04-02-2009, 10:50 PM
  2. Replies: 1
    Last Post: 10-20-2008, 08:35 AM
  3. Replies: 8
    Last Post: 09-18-2008, 01:55 PM
  4. Replies: 6
    Last Post: 08-18-2008, 07:44 AM
  5. Replies: 1
    Last Post: 08-06-2007, 07:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •