Sts中java项目如何替换jre,您如何将Eclipse和Eclipse项目指向eclipse中的新JRE版本? (不使用JAVA_HOME)...

Setting up scenario : I have two version of Java on my system. A 32 bit version and a 64 bit version. The other version I have is the 64 bit version of Eclipse (Java EE). The MyEclipse (32 bit version) is pointing to the 32 bit version of the JDK. I'm now trying to point the Eclipse (32 bit version) at the newly installed JDK 1.6.0_32. the JAVA_HOME variable is already take by the 64 bit version and thus I can't use this.

Previously this environment and projects in this environment were usinig Java 1.6.0_30. The places where I've changed the JRE version are in

Preferences->Java->Installed JREs. In here I've added my new JRE and removed the old one. What other places might I need to change this? I'm still getting an error referring to 1.6.0_30 when I start up my Apache Tomcat server. In specific I get the error

"The archive:Files/Java/jdk1.6.0_30/lib/tools.jar which is referenced by the classpath, doesn't exist. "

Looking in the class paths of my projects I see the correct 1.6.0_33 version. Where else might I need to change the classpath?

Thanks in advance.

解决方案

Go to Window/Preferences/Server/Runtime Environment, select your server (Apache Tomcat), click Edit. There is the JRE that uses your server, you can change it according to your needs.

iHiaQ.png

pxeeL.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值