Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load Main-Class manifest attribute #10

Closed
GoogleCodeExporter opened this issue Apr 24, 2015 · 17 comments
Closed

Failed to load Main-Class manifest attribute #10

GoogleCodeExporter opened this issue Apr 24, 2015 · 17 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
java -jar tcpmon-1.1.jar

1.
2.
3.

What is the expected output? What do you see instead?

Failed to load Main-Class manifest attribute from
tcpmon-1.1.jar


What version of the product are you using? On what operating system?
1.1

Please provide any additional information below.


Original issue reported on code.google.com by peter.ra...@gmail.com on 25 May 2011 at 3:48

@GoogleCodeExporter
Copy link
Author

Same problem here, Windows 7, 32 bit, java 1.6.0_25-b06

Original comment by tweakne...@googlemail.com on 26 May 2011 at 4:22

@GoogleCodeExporter
Copy link
Author

I get the same issue, Windows 7, Java 1.6.0_23-b05 (on a Mac running Parallels).

This happens when I run from commandline (as described above) and also when 
double-clicking on the JAR.

Original comment by jmccabe....@gmail.com on 31 May 2011 at 4:34

@GoogleCodeExporter
Copy link
Author

Same issue being faced on Windows 7.

"Failed to load Main-Class manifest attribute from ..\tcpmon-1.1.jar"

Original comment by yeshodha...@gmail.com on 31 May 2011 at 4:57

@GoogleCodeExporter
Copy link
Author

same issue , windows xp SP3 

Original comment by mahmoud....@gmail.com on 9 Jun 2011 at 10:15

@GoogleCodeExporter
Copy link
Author

Had this issue on Win 7 64-bit and is resolved by rebuilding the jar file to 
specify the main class with e option.
1) Extract the jar to tcpmon-1.1
2) cd tcpmon-1.1
3) jar cfe tcpmon.jar com.codegoogle.tcpmon.MainWindow 
com/codegoogle/tcpmon/*.class

Original comment by girishku...@gmail.com on 10 Jun 2011 at 9:34

@GoogleCodeExporter
Copy link
Author

Same problem, on Windows XP SP3 32bits, Java 1.6.0_24:

java -jar tcpmon-1.1.jar
Failed to load Main-Class manifest attribute from
tcpmon-1.1.jar

Original comment by mrs...@gmail.com on 15 Jun 2011 at 1:23

@GoogleCodeExporter
Copy link
Author

Windows 7 32 bit

$ /c/glassfish3/jdk/bin/java -jar tcpmon-1.1.jar
Failed to load Main-Class manifest attribute from
tcpmon-1.1.jar

Original comment by stefan.s...@gmail.com on 17 Jun 2011 at 6:43

@GoogleCodeExporter
Copy link
Author

Thanks to Comment 5 (girishku...@gmail.com) - your instructions on rebuilding 
the jar worked.

Original comment by yeo...@gmail.com on 17 Jun 2011 at 9:59

@GoogleCodeExporter
Copy link
Author

You can run it also this way: java -cp tcpmon-1.1.jar 
com.codegoogle.tcpmon.MainWindow
(Windows 7 64b, Java 1.5.0_22)

Original comment by Sasyn.Ka...@gmail.com on 1 Jul 2011 at 11:28

@GoogleCodeExporter
Copy link
Author

java -cp tcpmon-1.1.jar com.codegoogle.tcpmon.MainWindow

The above command line works (Windows XP SP3, J2RE 1.5.0 IBM J9 2.3),
but... Can someone at Google put Main-Class attribute back to the Manifest, 
please?

Original comment by valeri.s...@gmail.com on 22 Aug 2011 at 4:09

@GoogleCodeExporter
Copy link
Author

This has been fixed in rev 03c045bd737a.

Original comment by sleca...@gmail.com on 29 Aug 2011 at 1:01

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Issue 11 has been merged into this issue.

Original comment by sleca...@gmail.com on 29 Aug 2011 at 1:02

@GoogleCodeExporter
Copy link
Author

ok got the same problem but using 1.4, on win 7 64 

Original comment by agar...@gmail.com on 21 Oct 2011 at 2:48

@GoogleCodeExporter
Copy link
Author

Same problem on Vista 32 and Java 6.

but the method of the comment #5 solved it.

Original comment by toufik.h...@gmail.com on 1 Dec 2011 at 2:48

@GoogleCodeExporter
Copy link
Author

i don't understand what comment 5 was saying.

could you dumb it down a bit?

Original comment by Danny7...@gmail.com on 25 Dec 2011 at 11:28

@GoogleCodeExporter
Copy link
Author

Thanks Comment 5.

This comment allows to re-create a valid executable jar file. It needs a 
command prompt with Java binary in the path.

Original comment by julien.r...@gmail.com on 29 Nov 2012 at 5:40

@GoogleCodeExporter
Copy link
Author

Comment #9 worked for me! Thanks a lot!

Original comment by abbasdgr...@gmail.com on 28 Nov 2013 at 10:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant