Results 1 to 3 of 3

Thread: JAR execution

  1. #1
    patoh is offline Member
    Join Date
    Nov 2008
    Rep Power

    Default JAR execution

    Hi! am new to java and am trying to create an executable jar .The problem arises when i try execute the created jar file .i've tried using the command line "java -jar Develop.jar" but an error
    Exception in thread "main" java.lang.NoClassDefFoundError: Develop
    is displayed.
    The manifest file is in the same directory as the class file clearly stating what file has the main() method

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power


    Can you post here the content of the manifest file.

    You can find lots of information from the Suns' tutorial as well.

    Here is the link.

    Search the forum, you can find lots of such similar thread discuss here in our community.

  3. #3
    heartysnowy's Avatar
    heartysnowy is offline Member
    Join Date
    Nov 2008
    Rep Power


    i too have the similar issue like urs in the past...
    please compile ur java files, create a *.jar file again.
    The important thing is too add a "blank" line break at the end of the manifest file.

    you could also refer from here : Lesson: Packaging Programs in JAR Files (The Java™ Tutorials > Deployment) <----- recommended xD

Similar Threads

  1. execution of threads
    By jyotigupta6 in forum Threads and Synchronization
    Replies: 5
    Last Post: 11-16-2008, 01:28 AM
  2. Package/Execution woes...
    By Hiro ZA in forum New To Java
    Replies: 2
    Last Post: 01-09-2008, 08:42 AM
  3. Method execution time
    By javaplus in forum Advanced Java
    Replies: 3
    Last Post: 11-26-2007, 10:51 AM
  4. Execution methods – Reflection
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-15-2007, 04:19 PM
  5. Execution cut
    By Eric in forum Advanced Java
    Replies: 1
    Last Post: 06-27-2007, 04:52 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