2

由于 JRE <= 1.6 不支持字符串的 switch 语句,我无法从我的工作计算机上运行大多数程序。由于管理员限制,我无法安装或更新,是否可以在包含 JRE(1.7)的 USB 上创建便携式 Eclipse?

4

4 回答 4

4

Eclipse 部分很简单。只需在 USB 上解压缩 Eclipse。

您必须将 Java 安装到 USB。之后,进入 Eclipse 窗口 -> 首选项;Java -> Installed JREs 并确保您的 Java JRE 或 JDK 已列出并且是默认值。

在 USB 上创建你的工作区,你应该准备好了。

于 2013-08-08T16:14:05.540 回答
3

It's fairly easy to run Eclipse on a USB drive. You just need to make sure it knows to look for Java on your USB drive rather than on the host computer.

If you have Java Portable installed on your drive, you can tell Eclipse to use it by adding the following to your eclipse.ini file.

-vm
/PortableApps/CommonFiles/Java64/bin/javaw.exe

Note that Eclipse Portable stores the file as EclipsePortable\App\eclipse\eclipse.ini.

于 2017-03-08T21:03:03.727 回答
1

以我的经验,自从 Eclipse 从 Indigo 升级到 Juno,他们提供的 .zip 已经是可移植的。它不再在 Windows 用户数据文件夹中创建任何文件夹或文件。

于 2013-08-20T14:42:28.753 回答
0

只需将您的eclipse和jdk7放在闪存上并从闪存运行。在eclipse中设置JDK:Window->Preference->Java->Installed JRE...

于 2013-08-08T15:15:09.357 回答