Failed to load Main-Class manifest attribute
GoogleCodeExporter opened this issue · comments
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
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
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
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
same issue , windows xp SP3
Original comment by mahmoud....@gmail.com
on 9 Jun 2011 at 10:15
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
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
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
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
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
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
This has been fixed in rev 03c045bd737a.
Original comment by sleca...@gmail.com
on 29 Aug 2011 at 1:01
- Changed state: Fixed
Issue 11 has been merged into this issue.
Original comment by sleca...@gmail.com
on 29 Aug 2011 at 1:02
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
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
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
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
Comment #9 worked for me! Thanks a lot!
Original comment by abbasdgr...@gmail.com
on 28 Nov 2013 at 10:10