• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

getting started with Head First book

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic