This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

application entry point

 
chen young
Ranch Hand
Posts: 197
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem to set correct the main entry point in my application

This is the structure that I want to create in the jar:

bin (contain all the classes & the main class -> bin/gui/Main )
properties(properties and xml files)
images(contain all images)
lib(contain all jars)

I run this command in order to create the jar(and its working ok): jar cfvm rcy.jar manifest.txt bin lib properties images

I try few combinations in the manifest file but unfortunately it�s still don�t recognize the main class.

Any suggestions?

Thanks
 
Henry Wong
author
Marshal
Pie
Posts: 20835
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jar files don't exactly work that way... First, you can't just place class files anywhere. They have to be placed based on package. Second, you can't just place the manifest in the root. They should be placed in the directory reserved for manifests. And third, I don't think that you are allowed to place jar files in jar files.

Once placed correctly, you can specify the main by a field in the manifest. You can also specify the classpath to use, to locate the other jars, by another field in the manifest.

Henry
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic