eclipse提示错误

AJavaRuntimeEnvironment(JRE)orJavaDevelopmentKit(JDK)mustbeavailableinordertorunEclipse.NoJavavirtualmachinewasfoundaftersearchingthefollowinglocations:/opt/eclipse/eclipse/jre/bin/javajavainyourcurrentPATH

首先运行

update-alternatives--install/usr/bin/javajava/home/txlong/dev/jdk1.6.0_24/bin/java300

update-alternatives--install/usr/bin/javacjavac/home/txlong/dev/jdk1.6.0_24/bin/javac300

确保自己的jdk被使用为默认的jdk

update-alternatives--configjava

进行更新设置

相关推荐