problem running eclipse on ubuntu?

后端 未结 11 1843
不思量自难忘°
不思量自难忘° 2020-12-24 12:37

I downloaded eclipse on ubuntu. But when I run it it show following error.

A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available i         


        
11条回答
  •  天涯浪人
    2020-12-24 13:04

    I solved it by created a symbolic link java in /usr/bin that points to the VM.

    Steps :

    1. Downloaded the appropriate version of Oracle's JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=otnjp

    2. extract it to any folder. For example :

      tar zxvf ~/Downloads/jdk-8u5-linux-x64.tar.gz ~/DEV

    3. create symbolic link with name java :

      cd /usr/bin

      ln -s ~/DEV/jdk1.8.0_05/bin/java java

提交回复
热议问题