I can launch the Netbeans IDE successfully. But, when I run the sample applications in the IDE, I always get the JVM creation failed
message.
If I clean it, I can run it successfully, but only once. So, if I have to run an application, I have to rebuild it. Why?
I Googled for JVM creation failed
, but only found the solution to fix the issue in launching the Netbeans itself.
You can find.netbeans.conf under.
C:\Program Files\NetBeans\etc
This is the original conf row.
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true"
Simply add this extra parameter to the above row.
-J-XX:MaxPermSize=128m
Finally the row looks like.
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=128m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true"
Now restart you NetBeans...
This error shows if you have any other IDE like Visual Studio opened. Just closing the that application will solve that problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.