I have downloaded the J2EE1.4 bundle and set environmental variables, but I'm obviously pointing the vm down the wrong path. Does anyone know the name of the target folder that contains the additional api code?

I already had J2sdk1.4 - the path to this is assigned to JAVA_HOME

Do I substitute this with the new path? Can I have both, taking into consideration that the J2EE bundle also contains another copy of jdk?

Do I set the path to go to the bin directory of the server: C:\Sun\AppServer\bin OR set the path to the bin directory of the jdk within the J2EE bundle? C:\Sun\Appserver\jdk\bin

If you have the J2EE 1.4 bundle you should have a file called j2ee.jar in your %J2EE_HOME%\lib\ directory. Put j2ee.jar in your classpath when compiling and you'll be fine. You do not need to distribute this in your web app/ejb app when you deploy since the server you will be running on will have it's own implementation of these classes.

J Chandler
Ranch Hand

Joined: May 17, 2003
Posts: 32

posted Aug 03, 2004 09:20:00

0

Ken,

hi, thanks for your comments...

I have located j2ee.jar at: C:\Sun\AppServer\lib\j2ee.jar

Put j2ee.jar in your classpath when compiling and you'll be fine.

Do you mean : cd C:\Sun\AppServer\lib C:\Sun\AppServer\lib> javac //j2ee.jar somewhere around here? If so, how will the compiler find my .java file?

Also, I still don't know which path to set for JAVA_HOME - leave it pointing to j2sdk1.4, or redirect? If it's the latter, should I redirect to j2ee.jar?