6 Replies Latest reply: Jun 13, 2008 9:47 AM by 807601 RSS

    creating executable jar files

    807601
      I tried creating a executable jar file.I did add the statement including the class which contains the main class.Following is the manifest.mf file of the jar file.

      Manifest-Version: 1.0
      Created-By: 1.4.2_08 (Sun Microsystems Inc.)
      Main-Class: Gui

      Gui is the class where my main class is .All my files are in bin ,so i think there wont be any problems regarding classpaths .If i double click the executable jar file I get an error saying
      *"Could not find Main class program will exit "*

      iF i use the cmmand java -jar Filename.jar
      then i get the following error



      C:\j2sdk1.4.2_08\bin\next>java -jar Gui.jar
      Exception in thread "main" java.lang.NoClassDefFoundError: Gui


      Plz help me ...What could the problem be .the code is fine it works welll when i do java filename ...