Advertisement
Tritonio

How to set new JDK home in NetBeans IDE after Java update (NetBeans IDE refuses to start)

Mar 17th, 2021
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1.  
  2.  
  3. To find the variable which sets the JDK home for Netbeans you need to open the config file which sets it (replace <versionNumber> with the version number of your NetBeans, such as 8.0.2 and make sure that you are in the directory which the NetBeans folder is in, this will most likely be your home directory, to cd to that do: cd ~):
  4.  
  5. gedit netbeans-<versionNumber>/etc/netbeans.conf
  6.  
  7. And then locate variable called netbeans_jdkhome and set it to the current location of your JDK folder. For example it could look something like this (<username> replaced with your username):
  8.  
  9. netbeans_jdkhome="/home/<username>/jdk1.8.0_40"
  10.  
  11. Then save your changes to the config file, and NetBeans should launch with no problem.
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement