JavaGen Setup GuideThis page guides you through the installation of Java, Ant, Maven, the JBoss J2EE application server and JAM (JavaGen Ant Modules). If you're using a different J2EE application server, you can modify the installation accordingly. After completing the setup, the tutorials page guides you through the application build and code generation process. Table of Contents:Prerequisites - Really Basic StuffSkill PrerequisitesThe prerequisites are a working knowledge of Java, XML and familiarity with Ant. Also needed are file management skills using the operating system's command-line console. J2EE Application Server, XDoclet, SQL, database management, and UML technologies can be learned on a need-to-know basis as the project progresses. Operating Systems PrerequisitesTo do software development, a modern operating system is needed, such as the following:
Older operating systems such as Windows 95, Windows 98, Windows ME or Mac OS 7/8/9 will not be adequate. The computer should have at least 1 GBytes available on the hard drive, at least 250 MBytes of memory, and a reasonably fast (500 MHz +) clock speed. TipsTo avoid errors, be methodical in typing, or better yet, cut-and-paste the directory locations when configuring the environmental variables while verifying each step. Depending upon the existing setup, some steps may be skipped. Look for the verification instructions and let the results guide you. Fast Track - Experienced DevelopersExperienced developers who already have the prerequisite programs installed (Java 1.3+, Ant 1.6+, Maven 1.0-rc1+ and JBoss 3.x+) can go directly to the JAM Installation. To verify you have the proper setup, type
Unix SetupInstalling Java on UnixYou need both the Java Runtime
Environment (JRE) and the Java Development Kit (JDK), versions 1.3 or newer. The command
You must set the environment variables as specified below before the Java installation is complete. Installing Ant on UnixYou need Ant 1.6 or newer; older versions will not work. Download and unpack it in your home directory:
To verify Ant is installed, go to Ant's Buildfile: build.xml does not exist! Build failed You must set the environment variables as specified below before the Ant installation is complete. Installing Maven on UnixDownload Maven 1.0-rc1 or newer and unpack it into your home directory:
You must set the environment variables as specified below before the Maven installation is complete. To verify your installation type, __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0-rc2 ... Installing JBoss on UnixYou need the JBoss (>=3.2) Application server. You can get this from jboss.org
if your distribution doesn't have it packaged. JBoss can either be installed system wide or
in your home directory, which is recommended for testing. In either case, keep track
of where the To test your JBoss installation, open a console, cd to the Open a web browser and enter the address:
http://localhost:8080/jmx-console/index.jsp
and you should see the JMX Console Web Application with links to all JBoss's installed
components. Issue Download & Extract JAM on UnixTo install JAM, download the latest version and unpack it in your home directory:
Finish the Unix installation steps, then go to the JAM installation to complete the install process. Setting Environment Variables on UnixNext, set up your environment and path for the installed components. JavaGen needs
five environment variables set, Setting environment variables is somewhat distribution/shell specific. Using the bash shell as an example, the command is:
Note that you may have to replace the values in the example with the directories which are
correct for your setup.
The
You can check that the environment variables and path are set correctly by issuing the command
Windows SetupInstalling Java on WindowsYou need a current (1.3 or newer) version of both the Java Runtime
Environment (JRE) and the Java Development Kit (JDK). The command
You must set the environment variables as specified below before the Java installation is complete. Installing Ant on WindowsYou need Ant 1.6 or newer, older versions will not work. Download and unzip it into your development tools directory. You must set the environment variables as specified below before the Ant installation is complete. To verify Ant is installed, go to Ant's Buildfile: build.xml does not exist! Build failed Installing Maven on WindowsDownload Maven 1.0-rc2 or newer and unzip it into your development tools directory. You must set the environment variables as specified below before the Maven installation is complete. To verify your installation, type __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0-rc2 ... Installing JBoss on WindowsYou need the JBoss Application server, version 3.2 or newer. You can get this from jboss.org. Unzip JBoss into your development tools directory. To test your JBoss installation, open a console, cd to the Open a web browser and enter the address:
http://localhost:8080/jmx-console/index.jsp
and you should see the JMX Console Web Application with links to all JBoss's installed
components. Issue Download & Extract JAM on WindowsDownload the latest version of JAM from the download page: http://www.javagen.com/download.jsp, and unzip into your development tool directory using a zip utility like WinZip. Setting Environment Variables on WindowsNext, set up your environment and path for the JavaGen components. JavaGen needs
five environment variables set:
Note that you may have to replace the values in the example with the correct directories for your setup.
The
You can check that the environment variables and path are set correctly by issuing the command
JAM InstallationTo install JAM (JavaGen Ant Modules) you should have completed the platform specific steps above, including downloading
and extracting the latest version of JAM from http://www.javagen.com/download.jsp.
Minimally, you need Ant 1.6 up and running (older
versions of Ant will not work) and the
You will see a few error messages; this is normal, resulting from files that are not found
in Maven's central repository (In particular, To verify everything is setup properly, go to JAM's
J2EE Library InstallationDue to licensing issues, the J2EE API's can not be stored in Maven's central repository.
You have to download this code directly from Sun's site and place it in the repository
manually, using proper Maven naming conventions. Note: You may already have this code lying
around (it is included in one form or another with most Java IDEs and J2EE application servers),
however to keep things simple we'll just explain how to get it from Sun. Download the J2EE
code from http://java.sun.com/j2ee/sdk_1.3 and
extract it into your development tools directory. Go to the C:\Documents and Settings\username\.maven\repository\j2ee\jars\j2ee-1.3.1.jar If you don't know
where the local repository is located, go to JAM's If you did everything correctly, the J2EE APIs can be included in your classpath by including the following dependency entry in your Maven POM file:
<dependency>
<groupId>j2ee</groupId>
<artifactId>j2ee</artifactId>
<version>1.3.1</version>
</dependency>
Congratulations!You're ready to start using JAM and JavaGen. Next stop - the tutorial page. |
| Copyright 2003-2007 Outsource Cafe, Inc. All rights reserved. - Generated by JavaGen. |
