Program will Exit15“Could not find the main class” error when running jar exported by Eclipse1“Could not find the main class” in Java Salesforce application2JAR file: Could not find main class1Java: runnable thanks :) –S Gaber Jun 14 '12 at 11:50 add a comment| up vote 0 down vote I know this is a bit of a thread necro, but I was having I also tried other programs, it's the same with every single one. (I'm creating the .jar's through BlueJ) There is no problem when I run them through a .bat . The actual program isn't anything too complicated -- it's a simple "snake" game using Swing (plus the code all works when run from inside Eclipse). Source
How to replace not found reference "??" in an another constant e.g "REF"? One more thing to watch for... After this generate the jar file. This is most likely your problem. –Thorbjørn Ravn Andersen Oct 18 '12 at 22:47 what exactly do you mean with "meaning all the classes not found in the jar,
What could it be that prevents me from opening the jar just by clicking on it..? –Acidic Dec 25 '11 at 11:57 @Acidic: Updated the answer. Given how unportable it is to use the absolute filenames, I strongly suggest you just use relative ones. Post Reply Bookmark Topic Watch Topic New Topic Similar Threads Executable jar Failed to load Main-Class manifest attribute Axis2-1.4 help Reading a EAR file how to make executable jar file Manifest.MF Could Not Find Main Class Program Will Exit Executable Jar It's the same BlueJ-Version.
How does ssh run a command? Eclipse Runnable Jar Could Not Find Main Class You may happen to refer to absolute path names or something similar. Is there a non-medical name for the curve where index finger and thumb meet? Sever-sort an array A published paper stole my unpublished results from a science fair Is it bad form to write mysterious proofs without explaining what one intends to do?
to the manifest: Manifest-Version: 1.0 Class-Path: . McClane is a NYPD cop. Could Not Find Or Load Main Class Jar Command Line Investigate the Class-Path line of MANIFEST.MF file. Error Could Not Find Or Load Main Class Jar Linux What does the author want to convey by ending his letter with »Tschüssikowsky«?
Linked 130 Running JAR file on Windows 36 Loading image resource 25 “Could not find the main class” when double-clicking .jar file 3 jar file created in netbeans not executing 2 http://gsbook.org/not-find/jar-could-not-find-the-main-class-bluej.php Law case title convention: Why sometimes not "Plaintiff v. Did you use any settings / libraries that you didn't use in the jars that are working fine? –Tobold Dec 25 '11 at 13:08 @Tobold edited them into the Explain it to me like I'm a physics grad: Greenhouse Effect Theorems demoted back to conjectures be killed in the war vs be killed by the war Is there a non-medical Jar Cannot Find Main Class
How to select a number from all the integers list? Is the form "double Dutch" still used? inside TicTacToe Folder. http://gsbook.org/not-find/jar-file-could-not-find-the-main-class.php Any would be greatly appreciated.
See my edit in the original question, I posted the manifest and the structure inside the JAR file. –Valentino Ru Oct 19 '12 at 8:34 I would suggest you Java Jar Could Not Find The Main Class Fields that can be ordered in more than one way Who is this six-armed blonde female character? current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list.
Program will exit. Imma check the manifest again, at this unholy time ( 1:34 am ) :P EDIT2: This is my MANIFEST.MF Manifest-Version: 1.0 Class-Path: Main-Class: LocalChatClientGUI [empty line] [empty line] The Main class I want to become a living god! Could Not Find Or Load Main Class Jar Maven If you check the bat file which works, you'd probably see what you are missing in order to run it.
I've tried exporting with Package required libraries into generated jar but the file still doesn't work. Here you can edit the java versions per project and it includes a link to edit the settings for the entire Eclipse workspace. –Tansir1 Jun 3 '13 at 18:17 add a Running the jar via the console however - WORKS PERFECTLY. Check This Out Did Donald Trump say that "global warming was a hoax invented by the Chinese"?
I updated my Java just in case, but it didn't help. –Acidic Dec 25 '11 at 14:27 @Acidic: I suggest you update the question with this new information. –Eli