Setting Up To Build and Deploy Tutorial

Environent:

Win 2K Pro

sun studio 5

Sun Server 7

documentation:

J2EE tutorial

Studio 5 Getting Started Guide

I am trying to use studio 5 to build and deploy the tutorials.

I am able to use the getting started guide to build the simple hello world sample

The J2EE tutorial pg.113 to 115 says use the deploytool.

Question:

How can I use studio 5 to deploy - build and execute the examples?

[470 byte] By [MarkSoule] at [2007-11-25 10:15:24]
# 1

J2EE documentation

Setting Up To Build and Deploy Tutorial Examples

You use asant to build the tutorial examples and configure the application

server. In order to run the asant scripts, you must configure your environment

and the tutorial properties files as follows:

Add<JAVA_HOME>/bin to the front of your path.

Add<J2EE_HOME>/bin and <J2EE_HOME>/share/bin to the front of your

path so that J2EE 1.4 Application Server components overrides other

installations.

>>> Java_Home = C:\j2sdk1.4.2\bin

Which is the correct J2EE Home?

>>> J2EE_Home = C:\j2sdkee1.3.1

>>> J2EE_Home = E:\Program Files\Java\j2re1.4.2\bin

Where is share\bin?

>>> the only share\bin I have is under the appserver7 installation directory:

>>> <J2EE_HOME>/share/bin=C:\Sun\studio_5\appserver7\share\bin

Set the j2ee.home property in the file <INSTALL>/j2eetutorial14/

examples/common/build.properties to the location of your J2EE 1.4

Application Server installation.

>>> this would be

>>> J2EE_Home = C:\Sun\studio_5\appserver7

The build process uses the j2ee.home property to include the J2EE library archives in the classpath.

The J2EE library archive is the file <J2EE_HOME>/lib/j2ee.jar.

J2EE Library = C:\j2sdkee1.3.1\lib

If you wish to use an IDE or the javac compiler to compile J2EE applications, you must add

this JAR to your classpath.

***********************************************

So what should these values be set to?

Mark Soule at 2007-7-1 20:26:20 > top of Java-index,Development Tools,Java Tools...
# 2

The J2EE tutorial was not written with the Sun ONE Studio IDE in mind. Sun ONE Studio 5 is fully integrated with Sun ONE Application Server 7, and so you can use the Studio IDE to deploy an application to the application server. This is all fully described in the "Sun ONE Studio 5 J2EE Application Tutorial," which you can access, along with a lot of other examples and tutorials, from the product's Code Samples web page :

http://developers.sun.com/prodtech/javatools/reference/codesamples/index.html

The tutorial is in PDF format, so you can just open it online and read the parts you want.

writer-jqs at 2007-7-1 20:26:20 > top of Java-index,Development Tools,Java Tools...