wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes .jar file in linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark ".jar file in linux" Watch ".jar file in linux" New topic
Author

.jar file in linux

Ben Buchli
Ranch Hand

Joined: Mar 26, 2004
Posts: 83
Hi everybody,
when I click on a jar file that I exported from eclipse, I get following error message:
the utility zip is not in your PATH
Please install it or contact your System Administrator.

I have no idea what's wrong here, are .jar files not supported in linux? What do I have to do?

ok, i figured i would have to use java -jar /filepath
the problem then is that it says failure to load main-Class manifest attribute
I dont know what's wrong, but under windows the app runs perfectly fine.

any help is greatly appreciated!

ben
[ July 19, 2004: Message edited by: Ben Buchli ]
Anand Jayaraman
Ranch Hand

Joined: Jan 28, 2004
Posts: 104
Hi

Looks like META-INF/MANIFEST.MF has no Main-Class header.

Try jar xf filename.jar

In all, looks you don't have an executable jar.


Cheers
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .jar file in linux
 
Similar Threads
convert java application to exe file
help, sun told me my jar file was corrupt!
Problem in UNIX ClassPath
Tomcat 5 in Linux
Netbeans Experts...