NB hangs after "Add Platform" button is pressed.
See the jstack log.
Created attachment 73943 [details]
Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1250; pl_PL (nb)
Userdir: C:\Documents and Settings\Robert\.netbeans\6.5
is it reproducible?
According the stacktrace this is JDK issue with File Chooser:
The workaround is allegedly to clean up desktop shortcuts in XP :).
I've sometimes problem with NB (while accesses filesystem) and it's probably because of problems you have mentioned.
*** Issue 153592 has been marked as a duplicate of this issue. ***
A consequence of JDK bug, but there should be a workaround, something has changed that triggers this bug much more often
than before. Reproducible even when all modules are already loaded, so the workaround will be more complicated than
disable "Add Platform" button until module list is loaded.
Adding some more stack traces.
Created attachment 74745 [details]
Created attachment 74746 [details]
@rmichalsky from Issue 153592 Yes, I was using XP when I experienced this problem. I believe. It only happens to me
however when the modules have not loaded and the "Please wait..." or "Modules loading..." or what ever message is on the
screen for an existing platform in the dialog. Which ever one is by default loading and searching for modules. If that
is up and I click on the "Add Platform" button it hangs.
Happens with older versions of NetBeans as well.
Workaround is to upgrade to JDK 6u10 or later or downgrade to JDK 5.
I've had this issue reproducible even with JDK 1.6.0-12 on german Win XP.
My IDE was forced to english locale in <Netbeansfolder>\etc\netbeans.conf with
netbeans_default_options="--locale en:EN ...
The problem disappeared when I removed this and started the IDE with default german locale.
Perhaps JFileChooser on Windows machines uses some kind of localization to find the system user directory?
Some more info on this topic:
everything works fine (even with forced english locale) if I first open a FileChooser with 'Open Project'
and cancel this action.
When I then go to 'Tools | Netbeans Platforms' and press 'Add Platform...' the FileChooser comes up without problem.
*** Issue 162714 has been marked as a duplicate of this issue. ***
*** Issue 172083 has been marked as a duplicate of this issue. ***