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

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

问题描述


  • 我的64bit eclipse安装在我的64位windows7上进行Android编程。

  • 并行我正在开发一个简单的java程序jni的)在同一个eclipse(32位),我应该运行在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中运行/启动(eclipse中的绿色播放图标)一个64位jvm中的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.

IMHO ...

PS:
值得注意的是,您还可以拥有多个版本的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天全站免登陆