Guide to solve "Comparison method violates its general contract" issues on windows #6361
mbien
started this conversation in
Tips, Tricks and Workarounds
Replies: 3 comments 1 reply
Thanks @mbien Note that |
1 reply
|
fix got merged into JDK 23 -> openjdk/jdk#18126 https://bugs.openjdk.org/browse/JDK-8305072 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
update: fix got merged into JDK 23 (and backported to 22.0.2), please use the latest JDK update release: openjdk/jdk#18126 (comment)
Hello there,
as tormented windows user, you might run into a problem where the JFileChooser quits working. This can happen both, during installation (#6339) (since the windows installer uses java too) and also later while using NetBeans (#6295). You should see the following exception in the log and/or error dialogs:
This is a windows specific JDK bug, which occurs when you have a certain combination of folders/files on your system:
https://bugs.openjdk.org/browse/JDK-8305072
To workaround this issue, you can use a different installer (download page, community installers section) or use the zip distribution.
Once installed (or extracted), you will have to additionally add a flag to your
netbeans_default_optionsproperty innetbeans.conf:-J-Djava.util.Arrays.useLegacyMergeSort=trueAlternatively, you can add this flag as argument to your NetBeans windows shortcut
(without the.-Jmost likely)This should workaround the issue until the JDK is fixed. Installing linux would fix it too.
All reactions