JBoss3.0.7 Configuration in JBuilder7
1, J2SDK, J2SDKEE download, installation
Download from Sun's website and install J2SDK and J2SDKee. http://www.sun.com/
2, set environment variables
Java_Home = C: / J2SDK (J2SDK installation directory)
J2EE_HOME = C: / J2SDKee (J2SDKee installation directory)
Increase classpath = classpath;
C: /j2sdk1.4.1_02/lib/tools.jar;
C: /j2sdk1.4.1_02/jre/lib/jaws.jar;
C: /J2SDK1.4.1_02/lib/dt.jar;
C: /j2sdkee1.3.1/lib/ejb10deployment.jar;
C: /j2sdkee1.3.1/lib/j2ee.jar;
C: /j2sdkee1.3.1/lib/jhall.jar;
C: /j2sdkee1.3.1/lib/j2eetools.jar;
C: /j2sdkee1.3.1/lib;
Increase path = path;
C: /J2SDK1.4.1_02/bin; c: /j2sdkee1.3.1/bin;
3, test the installation and configuration of J2SDK and J2SDKee
Establish test files in any directory Test.java
Import java.util.date;
Public Class Test
{
//Constructor
Public test () {}
/ / Display the method of current time
Public string getdate ()
{
Date Date = new date ();
Return Date.toString ();
}
}
Then compile the source file at the command prompt.
/ javac test.java
If compiled correctly generates a Test.class file, it means that the J2SDK is installed correctly.
Enter in any directory
/ J2EE -VERBOSE
Start J2EE Server, J2EE Server Startup Complete
Indicates that the J2EE service is started normally
/ J2EE -STOP
Stop J2EE service.
The above means J2SDKee installation is correct.
4, download jboss
http://aleron.dl.sourceforge.net/sourceforge/jboss/jboss-3.0.7_jakarta-tomcat-4.1.24.zip
This version is a collaborative version of JBoss and Tomcat.
JBoss wants to work with JBuilder needs to download JBossopentool for JBuilder 7
Address: http://weisoft.myrice.com/download/jbuilder_jbossot.jar
5, install JBoss
Unzip JBoss-3.0.7_jakarta-tomcat-4.1.24.zip file, unzip installation, JBoss does not need to configure parameters.
Copy jbuilder_jbossot.jar file to JBuilder7 installation directory / lib / ext
6, configure jboss in jbuilder7
a, restart JBuilder7.
B, Tools> Configure Server
Select JBoss 3.x in User HOME to select the Enable Server in the right Server Settings.
General Pages
Home Directory is set to JBoss installation directory, others use the default settings.
Main class == org.jboss.main
VM parameters == -MS64M -MX64M -DPROGRAM.NAME = Run.bat
Server parameters == -C default (all, default, minimal) Working Directory == JBoss installation directory / bin /
Custom Pages
JBoss installation directory == installation directory for jboss
Tomcat in JBuilder installation directory == C: /jbuilder7/jakarta-tomcat-4.0.3
JBoss Configuration To Use: Default
C, Tools> Configure Libraties
Under User Home, a library setting name = jboss libs Click OK.
Add JBoss-J2EE.jar in the library setting class (in the Default under the Server directory in the JBoss).)
To this, the synergy development environment of JBoss and JBuilder has established completed, and EJB has been developed.
Note: Select Server's Server's Server to JBoss 3.x in the project properties in the newly established project.
The application of EJB will be established using JBuilder7 and JBoss work in the following article.