DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004

    Main Class not found problem

    I just made a jar file from an application/applet(it can be run either way) that I wrote. I followed all of the directions on the tutorial in cjards signature. The class that runs my program is called Runner, so in my manifest file I put Main-Class: Runner and then I pressed enter. I typed in jar cvfm SPX.jar mf.txt Saterasoft/ and it made the jar file. When I double click on the jar file, a pop up window informs me that the Main Class cannot be found. Does anyone know why this is happening?

    Come and play the games.....

  2. #2
    Join Date
    Feb 2004
    read the tutorial more closely.. you called the JAR command from the wronf directory, and as a resukr your jar file is messed up inside

    i,e, there is a very big dufference between these :

    c:\java\FINAL\> jar cvfm ..\MYAPP.jar ..\mf.txt .
    c:\java\>jar cvfm MYAPP.jar mf.txt FINAL/
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

  3. #3
    Join Date
    Feb 2004
    The problem I had with the tutorial is that when I tried to use the jar command in the Final\App folder , I got the error that jar was not a recognized command so I attempted to do it from the java folder and I keep getting that error.

    Come and play the games.....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.