The Artima Developer Community
Sponsored Link

Java Answers Forum
why do I get this error message?

1 reply on 1 page. Most recent reply: Feb 14, 2006 10:41 PM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Nacho Holiday

Posts: 1
Nickname: salty1
Registered: Feb, 2006

why do I get this error message? Posted: Feb 14, 2006 8:09 AM
Reply to this message Reply
Advertisement
Whenever I try to open a .jar file from LimeWire I get this message "Failed to load a main-class manifest attribute from c:\programfiles/limewire/commons-net.jar"
What does this mean?


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: why do I get this error message? Posted: Feb 14, 2006 10:41 PM
Reply to this message Reply
That means that some jar are "executable".

In the jar file there can be a manifest file containing information about the main class.

If you double-click on the jar file (you did not "open" it) the Java Runtime Environment is launched and searches for the main-class attribute. If it doesn't find one, you get this error message.
If you want to take a look at the jar files content, you have to open it with winzip, winrar or whatever pack program you want.
The jar file is just a renamed zip file.

Flat View: This topic has 1 reply on 1 page
Topic: import com.bruceeckel.simpletest.*; error Previous Topic   Next Topic Topic: Problem with AWT and Unicode

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use