File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes options in jar files.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "options in jar files...." Watch "options in jar files...." New topic

options in jar files....

kirtesh jain
Ranch Hand

Joined: Nov 15, 2008
Posts: 44
In my one of main class i have includes code for splash screen using swing....
so when i am running the code i use this command
java -splash:<image name> Main
I have also created Manifest.txt <Main-Class : Main> file which play the role for Entry file into jar but the Problem is i dont know how to include the option for splash screen...

please Help me out...
Thank You
Bert Bates

Joined: Oct 14, 2002
Posts: 8898
off to the intermediate forum...

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Martijn Verburg

Joined: Jun 24, 2003
Posts: 3275

Off to the Swing forum!

Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10824

Where is your image located with relation to the main class?
Also, the manifest file should be called

Check this out on more information on the "splash" attribute.
You can find lots of examples on how to create a jar file with an existing manifest file

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
kirtesh jain
Ranch Hand

Joined: Nov 15, 2008
Posts: 44
thanks for response i got the solution
thank you....
I agree. Here's the link:
subject: options in jar files....
It's not a secret anymore!