Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

importing javax.ejb  RSS feed

 
Andrew Ho
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I'm going through an online ejb tutorial at www.ejbtut.com. After deploying a simple ejb, I'm trying to access it using a sample file starting with:
import javax.naming.*;
import javax.ejb.*;
import javax.rmi.*;
import java.util.*;
...
My compiler complains that "package javax.ejb does not exist".
Before I started the tutorial I installed both sdk 1.3.1 and J2EE 1.3.0. Do I have to do any CLASSPATH or PATH settings or do I have to setup any specific jar file links in my compiler??
(I'm using JCreator 1.51)
Thank you very much
 
Tim Holloway
Bartender
Posts: 18709
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you need the J2EE classes, which are not part of the standard Java SDK or runtime. If you've acquired a Java EJB appserver such as JBoss or JOnAS (open-source) or iPlanet, WrbSphere or WebLogic (commercial), the ejb classes are part of the distribution and can be added to your compilation CLASSPATH.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!