Results 1 to 7 of 7
  1. #1
    hitmen is offline Member
    Join Date
    Oct 2008
    Posts
    58
    Rep Power
    0

    Default Creating a Jar File Using Command Prompt

    I encountered the following error. Can anyone help?
    See attachment
    Attached Thumbnails Attached Thumbnails Creating a Jar File Using Command Prompt-help.jpg  

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  4. #4
    hitmen is offline Member
    Join Date
    Oct 2008
    Posts
    58
    Rep Power
    0

    Default

    The command is suppose to open a jar file. However, there is a problem with the main class

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  6. #6
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    If want to execute the jar you need to add the -jar option to the command (and hopefully you've built the manifest file correctly).

    java - the Java application launcher

    And, no, that error is not any indication of there being "a problem with the main class". The problem, currently, is the fact that you are entering the command wrongly, and didn't bother to read the documentation to find out how to do it correctly.

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Creating a Jar File Using Command Prompt
    By hitmen in forum New To Java
    Replies: 14
    Last Post: 08-27-2011, 01:05 PM
  2. Running applet from command prompt
    By niteshwar.bhardwaj in forum Java 2D
    Replies: 1
    Last Post: 03-12-2009, 09:10 AM
  3. Replies: 2
    Last Post: 12-03-2008, 02:24 PM
  4. help me!!!! about command prompt..
    By kureikougaiji in forum New To Java
    Replies: 2
    Last Post: 11-13-2008, 07:15 PM
  5. Problem during executing Command Prompt
    By keshari in forum Advanced Java
    Replies: 4
    Last Post: 06-05-2008, 05:06 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
  •