简体   繁体   中英

Linux / Ubuntu cannot find JVM

I'm trying to install Netbeans to learn PHP.

I chose the all option from here

https://netbeans.org/downloads/index.html >

And when I tried installing it on terminal, it said I needed JDK 7. After downloading and installing JDK 7 from

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

I tried to install netbeans again and it gave me the same message; that JDK is not installed and I need to install it.

What should I do to get netbeans to isntall?

Did you try using the Package manager? You should already have a JRE installed by default, but you should be able to use:

sudo apt-get install openjdk-7-jdk

To verify that you actually installed Java on your system you can try:

java -version

Once you have that you should be able to run netbeans by using the netbeans.sh script in the bin/ of the netbeans download. If I remember correctly it doesn't really install anything, just runs from there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM