During installation of Netbeans 7.3 I got this message
the specified jdk folder does not contain jdkI have openjdk 7 installed on my system using apt-get. I tried to specify the path to /usr/lib/jvm/java-7-openjdk-i386 and also tried to /usr/lib/jvm/java-7-openjdk-i386/bin but nothing works. What should I do?
3 Answers
Got the solution. As openjdk documentation says I installed openjdk using
sudo apt-get install openjdk-7-jreBut it's not complete installation. After that I used this command
sudo apt-get install openjdk-7-jdkIt installs several extra packages. After that netbeans find jdk automatically and normal installation completed smoothly...
2You need to set the JAVA_HOME path.
Open /etc/profile with you favorite text editor, ie
gksudo gedit /etc/profileNavigate to the end of the file and add these contents
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export JAVA_BIN
export PATHReload your system wide PATH /etc/profile with
. /etc/profileAs an option, you can run the installer with the --javahome option pointing to the /usr/lib/jvm/java-7-openjdk-i386 path as such
netbeans-installer.sh --javahome /usr/lib/jvm/java-7-openjdk-i386
this will force the installer to use that path for the Java version you desire.
3for me it works. I installed Netbeans 8 and it ask me to join the jd path.
I used the first answer:
sudo apt-get install openjdk-7-jdkthan
sh netbeans-8.0-linux.sh (suppose I'm in the /home/MYNAME/Download/ where I downloaded .sh file)