• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need Advice on Advice Application

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ken Rubiniac
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic