In this tutorial we will discuss about ‘How To Install JBoss Tools in Eclipse‘ or ‘How To Install JBoss Application Server‘ in Windows environment.
Tools & Technologies Required:
2. Eclipse Juno – Version 4.2 as of this tutorial writing
3. JBoss AS 7 - As of this tutorial writing ’7.1.1.Final’
What is JBoss AS Tools?
JBoss Application Server (or JBoss AS or simply JBoss) is a free to use software/open-source application server that implements the Java Platform, Enterprise Edition (Java EE).
JBoss is written in Java and as such is cross-platform: usable on any operating system that supports Java.
JBoss was developed by JBoss, now a division of Red Hat.
Version:
The latest stables release is the 7.1.1.Final, which features a AS Certified Java EE 6 Full Profile.
Download the JBoss Tools - 7.1.1.Final
Step 1: Download the ‘jboss-as-7.1.1.Final.zip’ from JBoss downlaod Site.
Step 2: Extract the ‘jboss-as-7.1.1.Final.zip’ archive to directory on your computer.
Step 3: To test the JBoss Installation; start the JBoss Application Server from command line or by running the ‘standalone.bat’ from ‘JBoss\bin‘ folder.
For example C:\Development\jboss-as-7.1.1.Final\bin\standalone.bat
Step 4: After start up, you should be able to access the web server at: http://localhost:8080
Step 5: Press CTRL+C to stop the server.
Install JBoss Tools in Eclipse from Update Site:
Now we will look at how to ‘Install JBoss or Configure JBoss Application Server‘ directly in Eclipse development environment.
Step 1: You can install JBoss Tools via update site.
Just go to JBoss Tools download site.
Step 2: To install via update site, simply right-click the link (JBoss Tools Core 4.0 :: Eclipse 4.2) under ‘Stable Releases‘ section, copy the link, and paste it into Eclipse’s Update or Install Manager.
Step 3: Start the Eclipse, assuming that you have already installed the Eclipse IDE.
Step 4: In Eclipse IDE -> Go to Help -> Install New Software… and Install window opens.
Paste the link, that you have copied earlier, in to ‘Work With’ folder: http://download.jboss.org/jbosstools/updates/stable/juno/
Click on ‘Add’ button.
Click OK, on ‘Add Repository‘ window.
Step 5: In the next screen, the update site loads all the JBoss Tools like Hibernate, JAX-RS, and many more; but we only require ‘JBossAS Tools‘ for our tutorial.
Step 6: Expand the ‘JBoss Web and Java EE Development‘ hierarchy and select the ‘JBossAS Tools’ option.
Click ‘Next‘ button to view Installation Details.
Click ‘Next‘ button to ‘accept the license agreement’ and click ‘Finish‘.
You would get a ‘Security Warning‘, during installation, click OK to continue.
This would take couple of minutes to install ‘JBoss Tools in Eclipse‘, and once the installation is complete click on’Restart‘ button on the window that appears.
How to Configure and Run the ‘JBoss Server’ in Eclipse?
After the JBoss Tools installed in Eclipse IDE, you can test the JBoss Application Server directly from Eclipse by configuring and running the server.
Step 1: You need to create ‘New Server’ in Eclipse
Navigate to ‘Java EE’ prespective in Eclipse IDE.
Step 2: You will see the ‘Servers’ tab, on the bottom of the ‘Eclipse IDE’
If you don’t see it on the bottom of the ‘Eclipse IDE’, then activate ‘Servers’ tab from ‘Windows -> Show View -> Servers’.
Step 3: In the Servers tab -> Right-mouse-click -> New -> Server
In the ‘New Server’ window -> Select ‘JBoss 7.1′ from ‘JBoss Community’ options.
Step 4: Next, Set the ‘Home Directory’ field to the downloaded directory of the ‘JBoss AS‘.
e.g: C:\Development\jboss-as-7.1.1.Final
Step 5: Start the ‘JBoss 7.1 Runtime Server’ from Eclipse IDE
Servers tab -> Select ‘JBoss 7.1 Runtime Server’ -> Right-mouse-click -> Green Start button.
Server started successfully on the Eclipse Output Console Tab.
Step 6: Stop the ‘JBoss 7.1 Runtime Server’ from Eclipse IDE
Servers tab -> Select ‘JBoss 7.1 Runtime Server’ -> Right-mouse-click -> Red Stop button.
I hope, you enjoyed this tutorial on ‘How To Install JBoss Tools in Eclipse‘ or ‘How To Configure JBoss Tools in Eclipse‘.
If you have any questions, do let me now.
How To Install JBoss Tools in Eclipse is a post from: TEKDigest
The post How To Install JBoss Tools in Eclipse appeared first on TEKDigest.