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
How to integrate Eclipse Portable with Java Portable?
提问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、PATH和JAVA_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 /apps
as an example, but any folder should work.
以下说明以文件夹/apps
为例,但任何文件夹都可以使用。
- Download and install Eclipse Portableto any folder. (64 bitor 32 bit)
- Download and install the Portable Java Runtime Environment
- For 64 bit users: Install Java Portable (64 bit)to
/../CommonFiles/Java64
- For 32 bit users: Install Java Portable (32 bit)to
/../CommonFiles/Java
- For 64 bit users: Install Java Portable (64 bit)to
- Open your Eclipse settings file
../EclipsePortable/App/Eclipse/eclipse.ini
- Set the
-vm
as your portable Java installation. (Must be placed before-vmargs
)
- 将Eclipse Portable下载并安装到任何文件夹。(64 位或32 位)
- 下载并安装便携式 Java 运行时环境
- 对于 64 位用户:安装Java Portable(64 位)以
/../CommonFiles/Java64
- 对于 32 位用户:安装Java Portable(32 位)到
/../CommonFiles/Java
- 对于 64 位用户:安装Java Portable(64 位)以
- 打开您的 Eclipse 设置文件
../EclipsePortable/App/Eclipse/eclipse.ini
- 将 设置
-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