32位eclipse和64位java程序 [英] 32bit eclipse and 64bit java program

查看:31
本文介绍了32位eclipse和64位java程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 我在 64 位 windows7 上安装了稳定的 32 位 eclipse,用于 android 编程.
  • 同时,我正在同一个 Eclipse(32 位)中开发一个简单的 Java 程序(非 android,没有 jni),我应该在 64 位 jvm(需要更多堆空间)中运行.

这可能吗?(我在问,因为我不想通过尝试并行安装 64 位和 32 位 jvm 来破坏我稳定的开发环境)

Is that possible ? ( I am asking, because I do not want to destroy my stable development environment by experimenting of installing 64bit and 32bit jvm in parallel )

换句话说,问题是:是否可以从在 32 位 jvm 中启动的 32 位已安装 eclipse 在 64 位 jvm 中运行/启动(eclipse 中的绿色播放图标)java 程序?

The question in other words: Is it possible to run/launch ( green play icon in eclipse ) a java program in a 64bit jvm from a 32bit installed eclipse that was started in a 32bit jvm ?

问候

推荐答案

我强烈推荐:

1) 安装 64 位 JDK(多个不同的 JDK 可以在同一主机上共存)

1) Installing the 64-bit JDK (multiple different JDKs can all co-exist on the same host)

2) 启动 Eclipse,将您的项目配置为使用 64 位 Java 作为其构建和运行时路径……然后看看会发生什么.它应该可以正常工作.除非您的程序碰巧使用 SWT(而不是 Swing),或者碰巧有其他一些 32/64 位依赖项.

2) Fire up Eclipse, configure your project to use the 64-bit Java for its build and runtime paths ... and see what happens. It should work fine. Unless your program happens to use SWT (instead of Swing), or happens to have some other 32/64-bit dependency.

3) 尝试绝对没有坏处.

3) There's absolutely no harm in trying.

恕我直言...

附注:值得注意的是,您还可以在同一主机上共存多个版本的 Eclipse.您所需要的只是大量磁盘空间.以及在两个版本中重新安装插件和附加组件的麻烦.

PS: It's worth noting that you can also have multiple versions of Eclipse co-existing on the same host. All you need is lots of disk space. And the hassle of re-installing your plugins and add-ons in both versions.

这篇关于32位eclipse和64位java程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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