Hao's Blog
linux下安装myeclipse 报Unable to find Java environment解决

安装myeclipse的时候,myeclipse的安装程序在/usr/bin下找不到JDK的安装信息

1. sudo update-alternatives --install "/usr/bin/java" "java" /usr/jdk1.7.0_40/bin/java" 300
2. sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/jdk1.7.0_40/bin/javac" 300
3. sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/jdk1.7.0_40/bin/javaws" 300

1. sudo update-alternatives --config java
2. sudo update-alternatives --config javac
3. sudo update-alternatives --config javaws

参考 这里