为什么我不能安装任何版本的netbeans?

x6492ojm  于 2023-10-20  发布在  其他
关注(0)|答案(1)|浏览(191)

由于此NetbeansError,无法安装netbeans
我尝试使用netbeans 18、17和8(所有都尝试使用JDK 18、17和8),错误仍然存在。试图找到一个修复谷歌,但没有帮助
以下是有关此错误的详细信息(日志):

[2023-07-28 11:01:00.375]: NameResolver - to parse &Help!
[2023-07-28 11:01:00.375]: NameResolver - to parse < &Back
[2023-07-28 11:01:00.375]: NameResolver - to parse &Next >
[2023-07-28 11:01:00.375]: NameResolver - to parse Cancel
[2023-07-28 11:01:00.375]: NameResolver - to parse I &accept the terms in the license agreement
[2023-07-28 11:01:00.375]: NameResolver - to parse org/netbeans/installer/product/components/netbeans-license.txt
[2023-07-28 11:01:00.379]: NameResolver - to parse $R{org/netbeans/installer/product/components/netbeans-license.txt;UTF-8}
[2023-07-28 11:01:00.395]: NameResolver - to parse {0}
[2023-07-28 11:01:00.535]: NameResolver - to parse License Agreement
[2023-07-28 11:01:00.535]: NameResolver - to parse License Agreement
[2023-07-28 11:01:00.555]: NameResolver - to parse License Agreement
[2023-07-28 11:01:00.555]: NameResolver - to parse License Agreement
[2023-07-28 11:01:00.555]: NameResolver - to parse Please read the following license agreement carefully.
[2023-07-28 11:01:00.673]: NameResolver - to parse License Agreement
[2023-07-28 11:01:00.673]: NameResolver - to parse Please read the following license agreement carefully.
[2023-07-28 11:01:30.987]: NameResolver - to parse C:\Program Files\NetBeans 8.2
[2023-07-28 11:01:30.991]: NameResolver - to parse 1.8.0.0.0
[2023-07-28 11:01:30.991]: NameResolver - to parse 500.0.0
[2023-07-28 11:01:30.991]: NameResolver - to parse .*
[2023-07-28 11:01:30.991]: NameResolver - to parse false
[2023-07-28 11:01:30.991]: NameResolver - to parse false
[2023-07-28 11:01:30.991]: NameResolver - to parse false
[2023-07-28 11:01:30.995]: NameResolver - to parse false
[2023-07-28 11:01:30.995]: ... use Java that is already selected for the product: C:\Program Files\Java\jdk-17
[2023-07-28 11:01:31.068]: An unexpected exception happened in thread AWT-EventQueue-0
[2023-07-28 11:01:31.068]: java.lang.IllegalArgumentException: Comparison method violates its general contract!
[2023-07-28 11:01:31.068]:  at java.util.ComparableTimSort.mergeHi(Unknown Source)
[2023-07-28 11:01:31.068]:  at java.util.ComparableTimSort.mergeAt(Unknown Source)
[2023-07-28 11:01:31.068]:  at java.util.ComparableTimSort.mergeForceCollapse(Unknown Source)
[2023-07-28 11:01:31.068]:  at java.util.ComparableTimSort.sort(Unknown Source)
[2023-07-28 11:01:31.068]:  at java.util.Arrays.sort(Unknown Source)
[2023-07-28 11:01:31.068]:  at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source)
[2023-07-28 11:01:31.068]:  at sun.awt.shell.ShellFolder.get(Unknown Source)
[2023-07-28 11:01:31.068]:  at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$DirectoryComboBoxModel.addItem(Unknown Source)
[2023-07-28 11:01:31.068]:  at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$DirectoryComboBoxModel.access$800(Unknown Source)
[2023-07-28 11:01:31.068]:  at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.doDirectoryChanged(Unknown Source)
[2023-07-28 11:01:31.068]:  at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.access$1100(Unknown Source)
[2023-07-28 11:01:31.068]:  at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$11.propertyChange(Unknown Source)
[2023-07-28 11:01:31.068]:  at java.beans.PropertyChangeSupport.fire(Unknown Source)
[2023-07-28 11:01:31.068]:  at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
[2023-07-28 11:01:31.068]:  at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
[2023-07-28 11:01:31.068]:  at java.awt.Component.firePropertyChange(Unknown Source)
[2023-07-28 11:01:31.068]:  at javax.swing.JFileChooser.setCurrentDirectory(Unknown Source)
[2023-07-28 11:01:31.068]:  at javax.swing.JFileChooser.<init>(Unknown Source)
[2023-07-28 11:01:31.068]:  at javax.swing.JFileChooser.<init>(Unknown Source)
[2023-07-28 11:01:31.068]:  at org.netbeans.installer.utils.helper.swing.NbiFileChooser.<init>(NbiFileChooser.java:54)
[2023-07-28 11:01:31.068]:  at org.netbeans.installer.utils.helper.swing.NbiDirectoryChooser.<init>(NbiDirectoryChooser.java:51)
[2023-07-28 11:01:31.068]:  at org.netbeans.installer.wizard.components.panels.DestinationPanel$DestinationPanelSwingUi.initComponents(DestinationPanel.java:432)
[2023-07-28 11:01:31.068]:  at org.netbeans.installer.wizard.components.panels.DestinationPanel$DestinationPanelSwingUi.<init>(DestinationPanel.java:222)
[2023-07-28 11:01:31.068]:  at org.netbeans.installer.products.nb.base.wizard.panels.NbBasePanel$NbBaseDestinationPanelSwingUi.<init>(NbBasePanel.java:280)
[2023-07-28 11:01:31.068]:  at org.netbeans.installer.products.nb.base.wizard.panels.NbBasePanel$NbBaseDestinationPanelUi.getSwingUi(NbBasePanel.java:255)
[2023-07-28 11:01:31.068]:  at org.netbeans.installer.wizard.containers.SwingFrameContainer.updateWizardUi(SwingFrameContainer.java:228)
[2023-07-28 11:01:31.068]:  at org.netbeans.installer.wizard.Wizard.next(Wizard.java:609)
[2023-07-28 11:01:31.068]:  at org.netbeans.installer.wizard.components.sequences.ProductWizardSequence.executeForward(ProductWizardSequence.java:63)
[2023-07-28 11:01:31.068]:  at org.netbeans.installer.wizard.Wizard.next(Wizard.java:615)
[2023-07-28 11:01:31.068]:  at org.netbeans.installer.wizard.components.WizardPanel$WizardPanelSwingUi.evaluateNextButtonClick(WizardPanel.java:222)
[2023-07-28 11:01:31.068]:  at org.netbeans.installer.wizard.containers.SwingFrameContainer$8.actionPerformed(SwingFrameContainer.java:425)
[2023-07-28 11:01:31.068]:  at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
[2023-07-28 11:01:31.068]:  at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
[2023-07-28 11:01:31.068]:  at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
[2023-07-28 11:01:31.068]:  at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
[2023-07-28 11:01:31.068]:  at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.Component.processMouseEvent(Unknown Source)
[2023-07-28 11:01:31.085]:  at javax.swing.JComponent.processMouseEvent(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.Component.processEvent(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.Container.processEvent(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.Component.dispatchEventImpl(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.Container.dispatchEventImpl(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.Component.dispatchEvent(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.Container.dispatchEventImpl(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.Window.dispatchEventImpl(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.Component.dispatchEvent(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventQueue.access$500(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventQueue$3.run(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventQueue$3.run(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.security.AccessController.doPrivileged(Native Method)
[2023-07-28 11:01:31.085]:  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventQueue$4.run(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventQueue$4.run(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.security.AccessController.doPrivileged(Native Method)
[2023-07-28 11:01:31.085]:  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventQueue.dispatchEvent(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[2023-07-28 11:01:31.085]:  at java.awt.EventDispatchThread.run(Unknown Source)
[2023-07-28 11:01:31.085]: ... show message dialog
[2023-07-28 11:01:31.085]:     title: Critical Error
[2023-07-28 11:01:31.088]:     message: An unexpected exception happened in thread AWT-EventQueue-0
[2023-07-28 11:01:31.088]:     
[2023-07-28 11:01:31.088]:     Exception:
[2023-07-28 11:01:31.088]:       java.lang.IllegalArgumentException:
[2023-07-28 11:01:31.088]:       Comparison method violates its general contract!
[2023-07-28 11:01:31.088]:     
[2023-07-28 11:01:31.088]:     You can get more details about the issue in the installer log file:
[2023-07-28 11:01:31.088]:      C:\Users\crist\.nbi\log\20230728105427.log

帮助我做些什么来修复它或任何建议另一个IDE的Java Web服务开发。
此处的日志文件:logFile

voase2hg

voase2hg1#

一位客户的IT将机器升级到Windows 11后,在另一个软件中开始出现相同的错误。在我们的案例中,该软件使用捆绑的32位Java 1.8.0_192,并且在Windows 11之前工作。
堆栈跟踪包括

java.lang.IllegalArgumentException: Comparison method violates its general contract!
    at java.util.ComparableTimSort.mergeHi(Unknown Source)
    at java.util.ComparableTimSort.mergeAt(Unknown Source)
    at java.util.ComparableTimSort.mergeForceCollapse(Unknown Source)
    at java.util.ComparableTimSort.sort(Unknown Source)
    at java.util.Arrays.sort(Unknown Source)
    at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source)
    at sun.awt.shell.ShellFolder.get(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$DirectoryComboBoxModel.addItem(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$DirectoryComboBoxModel.access$800(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.doDirectoryChanged(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.access$1100(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$11.propertyChange(Unknown Source)
    at java.beans.PropertyChangeSupport.fire(Unknown Source)
    at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
    at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
    at java.awt.Component.firePropertyChange(Unknown Source)
    at javax.swing.JFileChooser.setCurrentDirectory(Unknown Source)
    at javax.swing.JFileChooser.<init>(Unknown Source)
    at javax.swing.JFileChooser.<init>(Unknown Source)

在我看来,这是Windows 11和Java之间的问题。既然你似乎在使用64位Java,那么Java的体系结构并不重要。
我无法在旧版本的Windows 11上重现此功能。
你还在用Windows 11吗?如果是,也许您可以尝试回滚任何最近的更新?
或者,在这里https://github.com/skylot/jadx/issues/1628#issuecomment-1211945290 xxr0ss建议尝试使用
JVM_OPTS中的-Djava.util.Arrays.useLegacyMergeSort=true

相关问题