English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i m havin problem in executing jar games The error is "failed to load main-class manifest attribute from x.jar

running xp sp2, 2.5ghz, 4gbram

2007-07-29 21:27:25 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

Use this link to add the name of the main-class to the manifest.

You may want to write a java program to browse a jar file and display the contents of the Manifest so that you can check that it is correct.

2007-07-29 22:15:07 · answer #1 · answered by AnalProgrammer 7 · 0 0

1

2016-11-06 17:15:42 · answer #2 · answered by Franklin 3 · 0 0

The Manifest is the file in an executable jar file that tells java which class to run on startup. Maybe your jar file isn't really an executable jar file? You can look in the jar with winzip. Finally, if you made the jar yourself, check the manifest for proper fomatting, it has a strict word wrapping that is enforced.

2016-04-01 09:23:33 · answer #3 · answered by Anonymous · 0 0

http://java.sun.com/javase/6/docs/technotes/guides/jar/index.html
http://neptune.netcomp.monash.edu.au/JavaHelp/howto/jar.htm
http://www.cs.princeton.edu/introcs/85application/jar/jar.html

i hope for best outcome

2007-07-29 22:18:26 · answer #4 · answered by angel04 3 · 0 0

fedest.com, questions and answers