This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Packageing a Jar does not work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Packageing a Jar does not work" Watch "Packageing a Jar does not work" New topic
Author

Packageing a Jar does not work

davoud taghawi
Greenhorn

Joined: Aug 18, 2009
Posts: 4
Hello,

I try to package a jar file in linux, but when I double click the jar file nothing happens.( The programs runs fine from eclipse).

when I try it on the promt the following happaens


How can I solve this?
Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
seems to be path issue
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10745
    
    9

Are you using any third party jars in your application? If yes, having jars inside jars does not work. Search the forums. This question has been discussed before. You will find a solution.

If not, can you post the contents of your jar's manifest.mf?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
davoud taghawi
Greenhorn

Joined: Aug 18, 2009
Posts: 4
Hello,

that was the problem. The solution is http://fjep.sourceforge.net/ . Fat-Jar a plugin that supports jars in jars

davoud
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Packageing a Jar does not work
 
It's not a secret anymore!