Java 如何在 Eclipse 中添加 JBoss 服务器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31245959/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to add JBoss Server in Eclipse?
提问by Subodh Joshi
I am new to JBoss and have just installed Eclipse. I have added a project to the workspace and now I want to deploy it to a Jboss server. However, in the New Server Runtime Environmentlist, JBoss is not available:
我是 JBoss 的新手,刚刚安装了 Eclipse。我已经向工作区添加了一个项目,现在我想将它部署到 Jboss 服务器。但是,在New Server Runtime Environment列表中,JBoss 不可用:
I am using the below Eclipse version:
我正在使用以下 Eclipse 版本:
Java EE IDE for Web Developers.
Version: Mars Release (4.5.0)
面向 Web 开发人员的 Java EE IDE。
版本:火星发布(4.5.0)
Why is JBoss not listed as a runtime environment? What do I have to do to add JBoss to the list of available runtime environments?
为什么 JBoss 没有被列为运行时环境?我需要做什么才能将 JBoss 添加到可用运行时环境列表中?
采纳答案by Subodh Joshi
Here is the solution follow below steps
这是解决方案,请按照以下步骤操作
- In Eclipse Mars go to Help-> Install New Software
- Click on add button and paste the URL of the update site which is in our case: Eclipse Mars tools for Jboss
- Now select the JBossASTools plugin and Click "Next"
- 在 Eclipse Mars 中,转到“帮助”->“安装新软件”
- 单击添加按钮并粘贴更新站点的 URL,在我们的示例中为:Eclipse Mars tools for Jboss
- 现在选择JBossAS工具插件并单击“下一步”
回答by Magnilex
Since Eclipse Mars 2 (JEE edition), JBoss Tools can be directly dowloaded from the New Serverinterface:
从 Eclipse Mars 2(JEE 版)开始,JBoss Tools 可以直接从New Server界面下载:
Selecting JBoss AS, WildFly, & EAP Server Toolswill install JBoss Tools. After installation, the view will include JBoss/WildFly:
选择JBoss AS、WildFly 和 EAP 服务器工具将安装 JBoss 工具。安装后,视图将包含 JBoss/WildFly:
Follow the below instructions if Eclipse Mars 1 is used.
如果使用 Eclipse Mars 1,请按照以下说明进行操作。
It is simply not built-in into the Eclipse distribution. You need to install JBoss Toolsfrom the Eclipse marketplace (Help-> Eclipse Marketplaceand search for "JBoss Tools").
它根本没有内置到 Eclipse 发行版中。您需要从 Eclipse 市场安装JBoss Tools(帮助-> Eclipse Marketplace并搜索“JBoss Tools”)。
More specifically, the feature you are asking for is documented here:
更具体地说,您要求的功能记录在此处:
回答by Saket Mittal
If server or tool you wanted(like glassfish,jboss) isn't listed then click download Additional server adapters
and download desired adapter.After that all related servers and tools will be listed then follow instruction here -
如果您想要的服务器或工具(如 glassfish、jboss)未列出,请单击download Additional server adapters
并下载所需的适配器。之后将列出所有相关服务器和工具,然后按照此处的说明进行操作 -
http://riccardotramma.com/2013/06/install-jboss-and-use-it-in-eclipse-juno/
http://riccardotramma.com/2013/06/install-jboss-and-use-it-in-eclipse-juno/
回答by matiou
In complement to the response of @Magnilex, (and for now...) you must run Eclipse Mars with a JDK 8 or the server adapters of JBoss Community don't appear (see the first chapter of http://tools.jboss.org/blog/2015-06-23-beta1-for-mars.html)
作为对@Magnilex 响应的补充,(现在...)您必须使用 JDK 8 运行 Eclipse Mars,否则 JBoss 社区的服务器适配器不会出现(请参阅http://tools.jboss的第一章.org/blog/2015-06-23-beta1-for-mars.html)
回答by Andrew Parle
This worked for me. It required two passes through Window/Preferences
...
这对我有用。它需要两次通过Window/Preferences
...
Window/Preferences/Server/Runtime Environments
Add... Select Red Hat JBoss Middleware Next Accept the license agreement
添加... 选择 Red Hat JBoss Middleware Next 接受许可协议
Installation takes a few minutes and requires an Eclipse restart
安装需要几分钟,需要重启 Eclipse
After the restart:
重启后:
Window/Preferences/Server/Runtime Environments
Add... Select JBoss Community/JBoss xxx Runtime Next Set the home directory and click the "Download and install" link
添加... 选择 JBoss Community/JBoss xxx Runtime Next 设置主目录并点击“下载并安装”链接
Select the version to download
选择要下载的版本
Accept the license agreement
接受许可协议
回答by Estin Chin
I faced the same problem, what I did was change the eclipse.ini point JDK version 1.8. Jboss Tools required 1.8.
我遇到了同样的问题,我所做的是将 eclipse.ini 指向 JDK 版本 1.8。Jboss 工具需要 1.8。
-vm
C:\Program Files\Java\jdk1.8.0_51\jre\bin
-vmargs
-Dosgi.requiredJavaVersion=1.8
回答by ESWAR KUMAR
I tried all the possible solutions that I came across, but none of them worked for me to install the jboss server in the eclipse IDE. Everytime I ended with one error(i.e Unable to load the repository), then I came to cross with below solution
我尝试了我遇到的所有可能的解决方案,但没有一个适合我在 Eclipse IDE 中安装 jboss 服务器。每次我以一个错误结束时(即无法加载存储库),然后我就遇到了以下解决方案
Here is the solution follow below steps
这是解决方案,请按照以下步骤操作
- In Eclipse go to Help-> Eclipse MarketPlace
- Search for Red Hat CodeReady Studio(Developer Studio)and install it after accepting the agreement and install it.
- Restart the eclipseinorder to reflect the changes in the eclipse
- Goto servers and look for the jboss run time enivironment which will be there and load the server to the eclipse
- 在 Eclipse 中转到帮助-> Eclipse MarketPlace
- 接受协议后搜索Red Hat CodeReady Studio(Developer Studio)安装即可。
- 重启eclipse以反映eclipse中的变化
- 转到服务器并查找将在那里的 jboss 运行时环境并将服务器加载到 eclipse
If you have any doubt regarding installation in eclipse IDE,go through the below link
如果您对 Eclipse IDE 中的安装有任何疑问,请访问以下链接
http://riccardotramma.com/2013/06/install-jboss-and-use-it-in-eclipse-juno/
http://riccardotramma.com/2013/06/install-jboss-and-use-it-in-eclipse-juno/