Guide to solve "Comparison method violates its general contract" issues on windows #6361
Replies: 3 comments 1 reply
-
Thanks @mbien Note that |
Beta Was this translation helpful? Give feedback.
-
me sale este error |
Beta Was this translation helpful? Give feedback.
-
fix got merged into JDK 23 -> openjdk/jdk#18126 https://bugs.openjdk.org/browse/JDK-8305072 |
Beta Was this translation helpful? Give feedback.
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_options
property innetbeans.conf
:-J-Djava.util.Arrays.useLegacyMergeSort=true
Alternatively, you can add this flag as argument to your NetBeans windows shortcut
(without the.-J
most likely)This should workaround the issue until the JDK is fixed. Installing linux would fix it too.
Beta Was this translation helpful? Give feedback.
All reactions