Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
132 views
in Technique[技术] by (71.8m points)

java - Netbeans 10.0 doesn't start in Windows 10 OS

I've just downloaded Netbeans 10.0 and on a Windows 10 64 bit it doesn't start when i execute netbeans64.exe (not even with netbeans.exe)

I removed all the java installations and installed jdk-11.0.2+9 and jdk-11.0.2+9-jre.

Also change the path in the netbeans configuration file to the right java path.

Configured the environment variables PATH and JAVA_HOME.

When run the app nothing happens.

Somebody else with same issue?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I suspect that at the time you installed NetBeans you either had no valid Java installation, or you have changed your Java installation(s) since you installed NetBeans 10.0. In that scenario NetBeans may be unable to start.

To eliminate this as a possibility, explicitly specify the version of Java to be used when starting NetBeans:

  • Locate the file netbeans.conf. It resides in the etc directory within your NetBeans installation directory.
  • It is a simple properties file containing name value pairs, with commented lines starting with a # character. Open the file in any text editor.
  • Locate the line containing the text netbeans_jdkhome=. If that line starts with a # character then delete that character to uncomment the line.
  • Set the value of that property to the path of the JDK that you want NetBeans to use. For example, on my Windows 10 machine the line looks like this:

    netbeans_jdkhome="C:JavaopenJDKjdk-11.0.2"

  • Try restarting NetBeans once you have saved your change to netbeans.conf.

  • If that doesn't work then locate the NetBeans log file, and update your question with the changes logged to it when you attempt to start NetBeans. That log is named messages.log, and is a simple text file. It will reside in a directory named var under your user directory. In my case, on Windows 10, its path is C:UsersjohndoeAppDataRoamingNetBeans10.0varlog, though obviously it will be different for you.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...