Results 1 to 4 of 4
  1. #1
    Wnt2bsleepin is offline Senior Member
    Join Date
    Feb 2012
    Posts
    219
    Rep Power
    3

    Default [SOLVED]Problem with Manifest file

    I keep getting a NoClassDefFoundError for org/joda/time/DateTime. I am trying to run this from a jar file, but it gives me that error when I get to that part in the code. It works in eclipse.

    Here is my current manifest file.

    Java Code:
    Manifest-Version: 1.0
    Class-Path: com.gmail.foo.packet.Packet joda.jar
    Main-Class: com.gmail.foo.client.Client
    The jar file is contained in the src directory. I assume that the manifest file is the issue. Thanks for any help.

    Cross posted at Javaprogrammingforum
    Last edited by Wnt2bsleepin; 01-11-2013 at 08:49 PM.

  2. #2
    kaydell2 is offline Senior Member
    Join Date
    Dec 2012
    Posts
    107
    Rep Power
    0

    Default Re: Problem with Manifest file

    Are you including joda.DateTime in your .jar file when you export it from Eclipse?

  3. #3
    Wnt2bsleepin is offline Senior Member
    Join Date
    Feb 2012
    Posts
    219
    Rep Power
    3

    Default Re: Problem with Manifest file

    Quote Originally Posted by kaydell2 View Post
    Are you including joda.DateTime in your .jar file when you export it from Eclipse?
    I believe so.

    Problem with Manifest file-eclipse.jpg

    It's being exported as a jar file, not a runnable jar. I am not sure what the difference is since they both seem to be executable.

  4. #4
    Wnt2bsleepin is offline Senior Member
    Join Date
    Feb 2012
    Posts
    219
    Rep Power
    3

    Default Re: Problem with Manifest file

    I was able to get it by using the jar command line, as well as exporting it as a runnable jar.

Similar Threads

  1. Manifest file: line too long error
    By nn12 in forum New To Java
    Replies: 10
    Last Post: 02-01-2011, 03:01 PM
  2. manifest file problem
    By afraidofdark in forum Advanced Java
    Replies: 5
    Last Post: 03-27-2010, 12:58 PM
  3. Jar File Manifest
    By hitmen in forum New To Java
    Replies: 6
    Last Post: 03-11-2009, 04:08 AM
  4. Manifest file in executable jars
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-15-2007, 08:16 PM

Posting Permissions

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