Where is the Java SDK folder in my computer? Ubuntu 12.04

后端 未结 11 2139
深忆病人
深忆病人 2020-11-28 01:26

I know it\'s installed because when I type:

$java -version

I get:

OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.         


        
11条回答
  •  孤街浪徒
    2020-11-28 02:20

    I am using Ubuntu 18.04.1 LTS. In my case I had to open the file:

    /home/[username]/netbeans-8.2/etc/netbeans.conf
    

    And change the jdk location to:

    netbeans_jdkhome="/opt/jdk/jdk1.8.0_152"
    

    Then saved the file and re-run Netbeans. It worked for me.

提交回复
热议问题