[英]How to add JBoss Server in Eclipse?
I am new to JBoss and have just installed Eclipse.我是 JBoss 的新手,刚刚安装了 Eclipse。 I have added a project to the workspace and now I want to deploy it to a Jboss server.
我已经向工作区添加了一个项目,现在我想将它部署到 Jboss 服务器。 However, in the New Server Runtime Environment list, JBoss is not available:
但是,在New Server Runtime Environment列表中,JBoss 不可用:
I am using the below Eclipse version:我正在使用以下 Eclipse 版本:
Java EE IDE for Web Developers.
面向 Web 开发人员的 Java EE IDE。
Version: Mars Release (4.5.0)
版本:火星发布(4.5.0)
Why is JBoss not listed as a runtime environment?为什么 JBoss 没有被列为运行时环境? What do I have to do to add JBoss to the list of available runtime environments?
我需要做什么才能将 JBoss 添加到可用运行时环境列表中?
Since Eclipse Mars 2 (JEE edition), JBoss Tools can be directly dowloaded from the New Server interface:从 Eclipse Mars 2(JEE 版)开始,JBoss Tools 可以直接从New Server界面下载:
Selecting JBoss AS, WildFly, & EAP Server Tools will install JBoss Tools.选择JBoss AS、WildFly 和 EAP 服务器工具将安装 JBoss 工具。 After installation, the view will include JBoss/WildFly:
安装后,视图将包含 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.它根本没有内置到 Eclipse 发行版中。 You need to install JBoss Tools from the Eclipse marketplace ( Help -> Eclipse Marketplace and search for "JBoss Tools").
您需要从 Eclipse 市场安装JBoss Tools (帮助-> Eclipse Marketplace并搜索“JBoss Tools”)。
More specifically, the feature you are asking for is documented here:更具体地说,您要求的功能记录在此处:
http://tools.jboss.org/features/server.html http://tools.jboss.org/features/server.html
Here is the solution follow below steps这是解决方案,请按照以下步骤操作
I faced the same problem, what I did was change the eclipse.ini point JDK version 1.8.我遇到了同样的问题,我所做的是将 eclipse.ini 指向 JDK 版本 1.8。 Jboss Tools required 1.8.
Jboss 工具需要 1.8。
-vm
C:\Program Files\Java\jdk1.8.0_51\jre\bin
-vmargs
-Dosgi.requiredJavaVersion=1.8
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
并下载所需的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/
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接受许可协议
作为对@Magnilex 响应的补充,(现在...)您必须使用 JDK 8 运行 Eclipse Mars,否则 JBoss 社区的服务器适配器不会出现(请参阅http://tools.jboss的第一章.org/blog/2015-06-23-beta1-for-mars.html )
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.我尝试了我遇到的所有可能的解决方案,但没有一个适合我在 Eclipse IDE 中安装 jboss 服务器。 Everytime I ended with one error(ie Unable to load the repository), then I came to cross with below solution
每次我以一个错误结束时(即无法加载存储库),然后我就遇到了以下解决方案
Here is the solution follow below steps这是解决方案,请按照以下步骤操作
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/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.