Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting started with Head First book

 
Vishal Gupta
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I just started reading the Head First EJB book and was following the instructions in the first chapter.
While I was compiling the very firsy java program, I got this error:

headfirst/Advice.java:3: package javax.ejb does not exist
import javax.ejb.*;


I have checked the PATH settings (on Windows XP platform) and have included the appropriate bin directory.

1) Can someome suggest what else needs to be done to fix this?
2) Do I also need to install Sun Java Application Server to run the examples in this book? or is it just sufficient to install the j2sdkee1.3.1

thanks!
 
Vishal Gupta
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it figured out:

JAVA_HOME (points to your Java 2 SDK directory)

J2EE_HOME (points to your J2EE 1.3.1 SDK directory)

PATH (needs to include the /bin directory in the J2EE home directory)

CLASSPATH (needs to include the /lib/j2ee.jar in the J2EE home directory)



thanks anyway..
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Black Hawk,

Please change your displayed name to conform to JavaRanch's Naming Policy.

In your case please use a first name (or initial) followed by a family name which are not obviously fictional.

You may change your displayed name here.

Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic