Note that there are some explanatory texts on larger screens.

plurals
  1. POMac OS, Java Splash
    primarykey
    data
    text
    <p>I'm trying to immigrate my Java application to Mac OS.<br> When the application start, splash screen supposed to appear.</p> <p>When i running the App from the terminal it go like this:<br> <code> java -classpath /the/right/classpath/ -splash:images/splash.png myApp/Main</code><br> when i do like this the splash screen appears. </p> <p>But when i bundle the App with the <a href="http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Jar_Bundler/Introduction/Introduction.html" rel="nofollow">Jar Bundler</a>, the splash screen does not appear.</p> <p>on the Jar Bundler, under the properties tab, in the VM Option i wrote:<br> <code>splash:images/splash.png</code><br> I also tried:<br> <code>-splash:images/splash.png</code>(with hyphen).<br> I marked the option "<i>Set Working Directory To Inside Application Package"</i> as well.</p> <p>i copy the <code>images/splash.png</code> to : <li>myApp.app/Contents</li> <li>myApp.app/Contents/Resources</li> <li>myApp.app/Contents/Resources/Java</li> <li>myApp.app/Contents/MacOS</li> But the splash screen refuses to appear!</p> <p>It's strange because the myApp.app succeed to run - it just not show the splash screen.</p> <p>I found at the console this two messages: <blockquote> Feb 11 02:53:32 SnowL /Users/myusername/Desktop/myApp.app/Contents/MacOS/JavaApplicationStub[24262]: Unrecognized Java VM option ignored: -splash:images/splash.png</blockquote><br> This without hyphen before the splash attribute.</p> <blockquote> Feb 11 02:55:50 SnowL /Users/myusername/Desktop/myApp.app/Contents/MacOS/JavaApplicationStub[26314]: Unrecognized Java VM option ignored: splash:images/splash.png</blockquote> <p>How it can by that when i run the app from the terminal the splash screen appear, but double click on the App does not show the splash screen? <br> it supposed to run on the same VM like the terminal VM, doesn't it? <br> I olso change the JVM version (on the Info.plist file) to: <br> 1.5* <br> 1.5+ <br> 1.6* <br> 1.6+ <br> none of them make the splash screen to appear.</p> <p>Thanks for help!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload