在 Windows 64 位上使用 32 位 jvm 运行 32 位 eclipse [英] Running 32bit eclipse with 32bit jvm on windows 64bit

查看:48
本文介绍了在 Windows 64 位上使用 32 位 jvm 运行 32 位 eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的其中一个 .jar 文件仅适用于 Windows 上的 32 位 java 虚拟机.我安装了 32 位版本的 eclipse 和 jdk,但仍然出现相同的错误.我将在运行配置中使用哪些命令来指定 32 位虚拟机来运行使用此 .jar 文件的应用程序?

One of the .jar files I am using only works with the 32-bit java virtual machine on windows. I installed the 32bit versions of eclipse and the jdk but it is still getting the same error. What commands would I use in the run configuration to specify 32-bit virtual machine for running the application that uses this .jar file?

-vmC:Program Files (x86)Javajre6injavaw.exe

-vm C:Program Files (x86)Javajre6injavaw.exe

不起作用.有什么想法吗?

doesn't work. Any ideas?

推荐答案

在使用 Eclipse 进行开发时,有 两个 JVM 在起作用.一个运行 Eclipse 本身,另一个用于您的程序.

There are TWO JVM's in action when developing with Eclipse. One running Eclipse itself, and the other one used for your program.

除非您在谈论插件,否则您需要担心的是后者.删除 -vm 选项,以便 Eclipse 以默认 JRE 启动.然后转到 Preferences -> Java -> Installed JRE's 并添加您的 32 位 Java 安装并将其设置为默认值(这就是窍门).

Unless you are talking about a plugin, it is the latter you need to worry about. Remove the -vm option so Eclipse starts with the default JRE. Then go to Preferences -> Java -> Installed JRE's and add your 32 bit Java installation and set it to be default (this is the trick).

如果您的应用程序使用的 JVM 发生变化,您就大功告成了.

If the JVM used by your applications change, you are done.

如果没有,您应该从一个新工作区开始,添加 32 位 JVM 并像以前一样创建您的项目.

If not, you should start with a new workspace, add the 32-bit JVM and create your projects as before.

这篇关于在 Windows 64 位上使用 32 位 jvm 运行 32 位 eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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