• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

getting started with Head First book

 
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..
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • 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
 
A wop bop a lu bob a womp bam boom. Tutti frutti ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic