aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Need Advice on Advice Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Need Advice on Advice Application" Watch "Need Advice on Advice Application" New topic
Author

Need Advice on Advice Application

Ken Rubiniac
Greenhorn

Joined: May 14, 2004
Posts: 10
Hello,

I am trying to compile the classes on p.30 and get an error for not
finding package javax.ejb.

My compile command is javac -classpath ..\lib\j2ee.jar -d ..\classes headfirst\*.java

My download is Sun Java System Platform edition 7 update 4.
The file sun-appserver7-win-ur.zip is 233MB. I downloaded only the server component. I found a file j2ee.jar.pack doing a system search, but not j2ee.jar. I renamed it which could be plain wrong.

My environment variables are:

PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Adaptec Shared\System;C:\PROGRA~1\ULTRAE~1;C:\Program Files\Symantec\pcAnywhere\;c:\j2sdk1.4.2_04\bin;C:\ant\apache-ant-1.5.3-1\bin;C:\Sun\AppServer7\bin

JAVA_HOME=c:\j2sdk1.4.2_04
J2EE_HOME=c:\Sun\AppServer7
CLASSPATH=.;\projects\advice\classes\headfirst\;c:\Sun\AppServer7\lib\j2ee.jar

For those who found j2ee.jar, what did you do different from me?

Any help would be greatly appreciated.

Thank you,

Ken
alzamabar
Ranch Hand

Joined: Jul 24, 2002
Posts: 379
I simply downloaded the J2EE 1.3 JDK, and unzipped it under a folder, and declared a J2EE_HOME variable pointing to the installation folder. The J2EE 1.3 package, when unzipped, contains a j2ee.jar under the /lib folder. You should find the same.


Marco Tedone<br />SCJP1.4,SCJP5,SCBCD,SCWCD
Ken Rubiniac
Greenhorn

Joined: May 14, 2004
Posts: 10
Marco,

Thank you for your response. You replied:

I simply downloaded the J2EE 1.3 JDK, and unzipped it under a folder, and declared a J2EE_HOME variable pointing to the installation folder. The J2EE 1.3 package, when unzipped, contains a j2ee.jar under the /lib folder. You should find the same.

I cannot find anything specifically for the J2EE 1.3 JDK on the Sun Site.
Can you give me an url for Windows XP?

I took the following steps below:

When I go to Sun's site, I go to this url:
http://java.sun.com/j2ee/download.html It mentions only the J2EE SDK not J2ee JDK, so I
go to the following URL:
http://java.sun.com/j2ee/1.3/download.html#sdk

I chose the following link: Sun ONE Application Server 7
I ended up choosing the link: Sun Java System Application Server Platform Edition 7 Update 4

I tried to unzip this and find a bunch of zips within the zip file, but no
j2ee.jar in lib. (This download is for Win XP). There was a jdk.zip, but no j2ee.jar in it.

Thank you for hearing me out,

Regards and Thanks,

Ken
 
Consider Paul's rocket mass heater.
 
subject: Need Advice on Advice Application