Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8948671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:03:15+00:00 2026-06-15T13:03:15+00:00

I have set up a splash screen to be used by my application in

  • 0

I have set up a splash screen to be used by my application in the manifest. If I create my jar using eclipse, the splash screen is displayed when I double click the jar. However, when I try to launch my application from the command line using java -classpath blah.jar, I get no splashscreen. I have also tried specifying java -splash:Resources/blah.png […], but this doesn’t work either (Resources/blah.png is my path within my jar).

I need to have it work through the command line for two reasons. First, some of the client machines may not have their system configured correctly to run the jar directly by double clicking. Second, through the command line I want to set my heap size and perm space size since in some cases it may be needed (it would be great to be able to do this through my manifest).

Lastly, I’d rather not have an images directory floating around separate to my jar.

In short, how do I use a java splash screen specified in the manifest when the jar is launched from the command line? Second, is there a good way to set my heap and permspace sizes without launching through the command line?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T13:03:16+00:00Added an answer on June 15, 2026 at 1:03 pm

    Launch the app with the -jar option instead of the -cp option. This tells java to load the classpath, the main class and other options like the splash screen from the jar’s manifest:

    java -jar myJar.jar
    

    That’s the command that the system uses when double-clicking on a jar (except it uses javaw and not java).

    If you want to have a double-clickable file which sets the heap and permgen size, then create a .bat/.sh file, or use a tool like launch4j.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My application splash screen is set to have one image fade in, then another,
In a tabbar based application, I have created a splash screen and set it
I have a splash screen on the application and on that form. I have
On my Android App, I have set up a splash screen. The splash screen
On my Android App, I have set up a splash screen. The splash screen
I have a splash screen that i am using it when i am loading
I have made a simple splash screen in a C# winforms application. The problem
I have set the eclipse java formatter to wrap lines that exceed 120 characters
I have set up Eclipse Indigo to do line debugging with CFEclipse over port
I have set up upload_max_filesize and post_max_size to 32Mb in php.ini. I am using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.