Cannot find java. Please use the --jdkhome switch

后端 未结 10 1610
生来不讨喜
生来不讨喜 2020-12-15 04:43

I have just installed Netbeans 8.0.2 on CentOS 6.5.

When I try to run it, I get the message

Cannot find java. Please use the --jdkhome switch
         


        
10条回答
  •  一生所求
    2020-12-15 05:00

    1. Go to the netbeans installation directory
    2. Find configuration file [installation-directory]/etc/netbeans.conf
    3. towards the end find the line netbeans_jdkhome=...
    4. comment this line line using '#'
    5. now run netbeans. launcher will find jdk itself (from $JDK_HOME/$JAVA_HOME) environment variable

    example:

    sudo vim /usr/local/netbeans-8.2/etc/netbeans.conf
    

提交回复
热议问题