我想在eclipse中将java路径设置为指定的java目录,而不是默认安装的java路径。我想通过使用指定路径中的java来运行eclipse。但是eclipse一直使用默认安装的java路径运行。我在" eclipse.ini"中指定了路径。文件,但这条路径不被eclipse用来运行..请老兄...... 这是我的" eclipse.ini"文件
-startup
插件/ org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
- launcher.library
插件/ org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120913-144807
- 产物
com.android.ide.eclipse.adt.package.adtproduct
-showsplash
org.eclipse.platform
- launcher.XXMaxPermSize
256米
- launcher.defaultAction
中openFile
-vm
/home/bibin/Documents/ADTBUNDLE/jdk1.6.0_17/bin/java
-vmargs
-Dosgi.requiredJavaVersion = 1.6
-XX:MaxPermSize参数=256米
-Xms512m
-Xmx1024m
答案 0 :(得分:0)
@Bibin Jose我想您很困惑,eclipse.ini是要启动eclipse的文件。在“ Windows >>首选项>> java >>已安装的JRE”中,可以设置要编译的JRE项目。您可以优先添加很多JRE。 如果需要,单击“添加”按钮,选择“ Standar VM”,然后单击下一步,最后设置其他jdk的安装路径。