Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to set property "java.util.Arrays.useLegacyMergeSort" in jnlp-file?

912655Jan 23 2012 — edited Jan 23 2012
Hi,

I have a problem in a web start application with java 7 and the new sort behavior (exception: comparison method violates its general contract).

So I like to go back to previous behavior and tried to put the new java 7 system property "java.util.Arrays.useLegacyMergeSort" in the generated jnlp-File:
<property name="java.util.Arrays.useLegacyMergeSort" value="true"/>.

Now I can read the property value in java code with System.getProperty("java.util.Arrays.useLegacyMergeSort"), and guess the property was successful set, but the exception still appears?!

The system property works with command line "javaws -J-Djava.util.Arrays.useLegacyMergeSort=true file.jnlp", but not via doubleclick on the jnlp-file or url and browser.

Any ideas?

Cheers,
Dan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2012
Added on Jan 23 2012
2 comments
2,790 views