Menu

Doesn´t find the classes in my added jar-file

Help
2007-05-03
2013-05-20
  • Stephan Petrowitsch

    Hi,

    I created a jar-file with the following options:

    - I didn´t select the manifest-file
    - merge individual sections of all MANIFEST.MF-files
    - remove signer-files in META-INF

    In the second page I selected all my code (there´s no main-classes, because it´s containing plugins for another software) and the two additional jar-files, I wanted to add.

    When I first call a class out of this added jar-files, I get the message, that they are not found.

    Any hint, what´s wrong?

     
    • Samwell Freeman

      Samwell Freeman - 2008-05-11

      I had this same problem.  Specifically I was using eclipse to develop a project incorporating the wonderful graphics library built by the folks at processing.org .  Eventually my solution was to add a new folder and using the advanced option create a linked folder to the external library in my case processing 0135/lib.  This worked for me.  Also make sure to click on the next button in the fat jar dialog box and select all of the external libraries you are using.  Hope this helps!

       
    • Ferenc Hechler

      Ferenc Hechler - 2008-07-22

      Hi Stephan,

      are the classes in the JAR file?
      Just rename the ".jar"-file into ".zip" and look inside.

      Do not select the one-jar option.

      Best regards,

           feri

       

Log in to post a comment.