Quantcast
Channel: TEKDigest » Tutorials
Viewing all articles
Browse latest Browse all 5

How To Install JBoss Tools in Eclipse

$
0
0

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:

1. Java SE 7 – JDK/JRE

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.

JBoss Tools Download How To Install JBoss Tools in Eclipse

Step 2: Extract the ‘jboss-as-7.1.1.Final.zip’ archive to directory on your computer.

JBoss Tools Zip How To Install JBoss Tools in Eclipse

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

JBoss AS Tools Server standalone How To Install JBoss Tools in Eclipse

Step 4: After start up, you should be able to access the web server at: http://localhost:8080

JBoss Localhost How To Install JBoss Tools in Eclipse

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.

JBoss Tools Eclipse Install How To Install JBoss Tools in Eclipse

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.

JBoss Tools Update Site How To Install JBoss Tools in Eclipse

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.

JBossAS Tools How To Install JBoss Tools in Eclipse

Click ‘Next‘ button to view Installation Details.

JBoss Tools Installation Details How To Install JBoss Tools in Eclipse

Click ‘Next‘ button to ‘accept the license agreement’ and click ‘Finish‘.

You would get a ‘Security Warning‘, during installation, click OK to continue.

JBoss Tools Security Warning How To Install JBoss Tools in Eclipse

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’.

Eclipse Servers Tab How To Install JBoss Tools in Eclipse

Step 3: In the Servers tab -> Right-mouse-click -> New -> Server

New JBoss Server How To Install JBoss Tools in Eclipse

In the ‘New Server’ window -> Select ‘JBoss 7.1′ from ‘JBoss Community’ options.

Eclipse JBoss New Server How To Install JBoss Tools in Eclipse

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

JBoss Runtime Setup How To Install JBoss Tools in Eclipse

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.

JBoss Server Start How To Install JBoss Tools in Eclipse

Server started successfully on the Eclipse Output Console Tab.

JBoss Server Log How To Install JBoss Tools in Eclipse

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.


Viewing all articles
Browse latest Browse all 5

Trending Articles