如何在Eclipse中设置Java路径以便在外部驱动器上运行它? [英] How do I set the Java path in Eclipse so I can run it on an external drive?

查看:140
本文介绍了如何在Eclipse中设置Java路径以便在外部驱动器上运行它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Eclipse 3.5.1和Java Portable(来自Portableapps.com)安装在便携式硬盘驱动器上,并希望将我的Eclipse指向使用便携式应用程序Java版本。这将允许我在计算机上使用Eclipse,即使没有安装Java。我如何做到这一点?

I have Eclipse 3.5.1 and Java Portable (from Portableapps.com) installed on a portable hard drive and would like to point my Eclipse to use the portable apps Java version. This will allow me to use Eclipse on a computer even if Java isn't installed. How do I accomplish this?

推荐答案

或许看看 Eclipse Portable 项目

编辑
或者,编辑 eclipse.ini 文件并添加:

EDIT: Alternatively, edit the eclipse.ini file and add:

-vm 
..\path-to-jre\bin\javaw.exe

[-vm之后的新行]

这篇关于如何在Eclipse中设置Java路径以便在外部驱动器上运行它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆