windows 如何将 Eclipse Portable 与 Java Portable 集成?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8542739/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 18:40:46  来源:igfitidea点击:

How to integrate Eclipse Portable with Java Portable?

javawindowseclipsesdkportable-applications

提问by Saudate

I recently downloaded Eclipse Portableto do some Java Programming anywhere. I also downloaded Java Portable.

我最近下载了Eclipse Portable以便在任何地方进行一些Java 编程。我还下载了Java Portable

How can I integrate Java Portable with Eclipse Portable?

如何将 Java Portable 与 Eclipse Portable 集成

I know that on the "installed" version of these two, I need to set up the CLASSPATH, PATHand JAVA_HOMEvariables in order to use the Java Compiler(javac.exe)

我知道在这两个的“已安装”版本上,我需要设置CLASSPATH、PATHJAVA_HOME变量才能使用 Java Compiler(javac.exe)

How can I set this up on a thumb drive? How can I tell Eclipse to use my portable Java?

我如何在拇指驱动器上设置它?如何告诉 Eclipse 使用我的可移植 Java

Please help me, and if possible please be specific and detailed procedure-wise. I am planning to deploy these applications on Windows XP/7machines.

请帮助我,如果可能,请在程序方面具体和详细。我计划在Windows XP/7机器上部署这些应用程序。

Any efforts to answer my question will be greatly appreciated!

任何回答我的问题的努力将不胜感激!

回答by Stevoisiak

The following instructions use the folder /appsas an example, but any folder should work.

以下说明以文件夹/apps为例,但任何文件夹都可以使用。

  1. Download and install Eclipse Portableto any folder. (64 bitor 32 bit)
  2. Download and install the Portable Java Runtime Environment
  3. Open your Eclipse settings file ../EclipsePortable/App/Eclipse/eclipse.ini
  4. Set the -vmas your portable Java installation. (Must be placed before -vmargs)
  1. Eclipse Portable下载并安装到任何文件夹。(64 位32 位
  2. 下载并安装便携式 Java 运行时环境
  3. 打开您的 Eclipse 设置文件 ../EclipsePortable/App/Eclipse/eclipse.ini
  4. 将 设置-vm为您的便携式 Java 安装。(必须放在之前-vmargs)

For 32 bit

对于 32 位

 -vm
 E:/Apps/CommonFiles/Java/bin/javaw.exe

For 64 bit

对于 64 位

 -vm
 E:/Apps/CommonFiles/Java64/bin/javaw.exe

回答by Octavian

Actually you should install it from within the program itself. I followed this postby berny23 and it worked perfectly (nothing else worked).

实际上,您应该从程序本身中安装它。我关注了 berny23 的这篇文章,它工作得很好(没有其他工作)。

You just need the normal java runtime environment and not the
jdk:https://portableapps.com/apps/utilities/java_portableAfter
putting the files into the jre folder do this:
- Run Eclipse Portable
- Go to "Help" -> "Install new software"
- Select your eclipse version by clicking the small arrow next to "Add"
- search for "java" in the search bar
- Tick "Eclipse Java Development Tools" and hit finished.
- after installation click on "restart eclipse"

你只需要普通的Java运行时环境,而不是
JDK:https://portableapps.com/apps/utilities/java_portable
把文件放入文件夹,这样做的JRE:
-运行Eclipse便携式
-转至“帮助” - >“安装新软件”
-通过单击“添加”旁边的小箭头选择您的 Eclipse 版本
-在搜索栏中搜索“java”
-勾选“Eclipse Java 开发工具”并点击完成。
- 安装后点击“重启eclipse”

回答by Jwalin Shah

You need to set java compiler in eclipse from below path.

您需要从下面的路径在 eclipse 中设置 java 编译器。

Eclipse -> Windows(one of the menu on top) -> Preferences -> Java -> Compiler

Eclipse -> Windows(顶部菜单之一) -> Preferences -> Java -> Compiler