7u9 jnlp very touchy with vm args
Jeff Palmer
jcpalmer at rochester.rr.com
Wed Oct 24 14:52:00 PDT 2012
I have isolated my problem, & I think the reason might help explain some other messages on the other list. I have reviewed the allowable vm args in JNLPs as published:
http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/syntax.html#resources
I was not fully compliant, as I was referencing the argument, -XX:+UseConcMarkSweepGC.
This is a working JNLP snippet from the previous release (7u8 I think):
<resources>
<j2se
version="1.7+"
java-vm-args="-Xmx200m XX:+UseConcMarkSweepGC"
/>
<jar href="my-app.jar" />
</resources>
<resources os="Mac">
<j2se
version="1.6+"
java-vm-args="-Xmx200m XX:+UseConcMarkSweepGC -Dapple.awt.graphics.UseQuartz=true"
/>
</resources>
Take out the unsupported argument in both places, and it now works. 7u9 does tolerate the GC arg on Windows still.
This is clearly not a bug. I think a little better could be done on providing feed though. The program just ENDS. No warning, failure message, traces, nothing. This makes it hard to find.
This one took a day. I was concerned my Lion partition had a bunch of ea stuff which I had tinkered with & was not stock enough anyway, so the time to blow it away & rebuilding it was still worth it.
Finally, after I re-installed, I just went to the Oracle site and installed the JRE. In Safari, specifying a jnlp, downloads & starts it. If you click on the desktop icon for subsequent runs you get message box from Software Update:
"To open "BLAH,BLAH, BLAH" you need a Java SE 6 runtime. Would you like to install one now?"
No, I do not need this. This message did NOT come up because I have the 2 j2se tags. I tried when there was only 1.
If I actually followed through and did that, it would not even use it. (guess I have to though, starting though cache viewer is a pain). The test is wrong. It should be testing for the Oracle plugin installed.
More information about the macosx-port-dev
mailing list