简体   繁体   English

如何更改JBoss的Java JVM?

[英]How to change Java JVM for JBoss?

I did an installation on my Mac of a new Java SDK (1.6 -> 1.7). 我在Mac上安装了新的Java SDK(1.6-> 1.7)。

On command line it shows the 1.7. 在命令行上显示1.7。 And I even changed the Mac's Symlink of CurrentJDK. 我什至更改了Mac的CurrentJDK的Symlink。

But JBoss still shows me a path entry "java.home" pointing to 1.6. 但是JBoss仍然向我显示了指向1.6的路径条目“ java.home”。 And it is not possible to change that via admin website. 并且不可能通过管理网站更改它。

Anybody know how to change that? 有人知道如何改变吗?

PS: I start JBoss from Eclipse, which knows also 1.7 now as default. PS:我从Eclipse开始JBoss,现在默认情况下也知道1.7。

Open the Launch Configuration for your JBoss server in Eclipse. 在Eclipse中为您的JBoss服务器打开启动配置。 On the JRE tab you can select the specific Java runtime that it will run in. If the option Project Execution Environment is selected (the default), then you can change it by opening the Project properties, going to the Java Build Path section, then the Libraries tab. 在“ JRE”选项卡上,可以选择将在其中运行的特定Java运行时。如果选择了“ 项目执行环境 ”选项(默认选项),则可以通过打开“项目”属性来进行更改,请转到“ Java构建路径”部分,然后标签。 Select the JRE System Library entry from the Libraries list then use the **Edit...* button to select your desired Execution Environment. 列表中选择JRE系统库条目,然后使用**编辑... *按钮选择所需的执行环境。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM