Page 2 of 2 First 12
  • Jump to page:
    #16
  1. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,717
    Rep Power
    348
    Have you tried executing the jar file from a command prompt?
    Open a window, change to the directory with the jar file and enter:
    java -jar <THE JAR FILENAME HERE>
  2. #17
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    14
    Rep Power
    0
    Originally Posted by NormR
    Have you tried executing the jar file from a command prompt?
    Open a window, change to the directory with the jar file and enter:
    java -jar <THE JAR FILENAME HERE>
    I turned on the webstart console and I got

    Code:
    java.lang.NoClassDefFoundError: net/sf/picard/io/IoUtil 
    Caused by: java.lang.ClassNotFoundException: net.sf.picard.io.IoUtil
    My jar file contains a jar with the relevant directories with the classes the console is complaining about so I don't know why they can't be detected. The classes seem to run fine from the jar file in the IDE.
  4. #18
  5. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,717
    Rep Power
    348
    My jar file contains a jar
    The java program does not know how to use a jar file that is inside of another jar file.
    (It can be done by using a custom classloader)

    The other jar files can be referenced by the Class-Path: record in the jar file's manifest file.
  6. #19
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    14
    Rep Power
    0
    Originally Posted by NormR
    The java program does not know how to use a jar file that is inside of another jar file.
    (It can be done by using a custom classloader)

    The other jar files can be referenced by the Class-Path: record in the jar file's manifest file.
    How would you get eclipse to properly create the manifest? When I export the file I click to include the classpath and I have it generate the manifest. The jars are already attached to the project.
  8. #20
  9. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,717
    Rep Power
    348
    Sorry, I don't know how to use your IDE.
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo