This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

application entry point

 
chen young
Ranch Hand
Posts: 197
  • 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: 20999
76
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic