Install JBoss and use it in Eclipse (Juno)June 16th, 2013 | Posted by in Eclipse | Java | Java EE | JBoss | Server | Windows
That post is exactly what the title says. We’ll install JBoss and configure the server in Eclipse.
From a chronological order, this post comes after:
And after or as an alternative to:
but I will assume that this is the first server you’ll configure in Eclipse.
JBoss – Downloading
Well, easy enough… just go to the website:
and download the version you want to use.
I’ll assume you will download the version 7.1.1 (zip):
JBoss – Installation
Just unzip the file in your preferred location. I’ll suggest to put it in the root of your HD. Ex: “C:\jboss-as-7.1.1.Final“.
That’s all… really!
JBoss – Configure Eclipse (JBoss Developer Studio)
Open Eclipse and navigate to Help->Eclipse Marketplace…:
In the windows that will pop up enter “jboss” in the search field and enter it.
The JBoss Development Studio should be easily visible.
When you spot it, just click on the Install button:
And just confirm it with Next:
Then finish it accepting the terms and clicking on Finish:
The installation will start…
You will be prompted to continue with the installation. Simply click on OK:
At the end of the Installation Eclipse will ask you to restart itself. Accept it.
When the restart will be complete JBoss Dev Studio will ask you to send them usage statistics.
Feel free to select any of the two options based on your personal preferences.
Now you can have access to the new JBoss Dev Studio Perspective!
Open Window->Open Perspective->Other…
Unless you can directly see it listed in the perspectives:
Then select JBoss in the new Pop up:
Now it’s done! And you can switch to the new perspective simply clicking on the JBoss button that you can see in the top right area of your screen:
This perspective is very useful especially because presents to you a nice portal that you can use to quickly start projects and documentation/examples.
JBoss – Adding the server to Eclipse
Click on the “Servers” tab that you should have visible in the bottom area of your screen:
You should see the other servers listed (if any) or a link that prompt you to add one server:
You can click on the link (if you see it) or right click in the white area and select the New->Server option:
In the new window select the JBoss server you intend to use. I’ll install the JBoss AS 7.1:
In the next window you will have to enter the path where you unzipped JBoss and make sure to select the correct JRE (the Java EE SDK we downloaded in another blog post):
You can the simply click on Finish (or continue with a couple of Next if you prefer).
After this you will see you server listed in the Servers tab:
That’s all for this episode.
We’ll install more servers (just for fun) in other posts and will see how to write a Servlet to use with them. Stay tuned ;)