File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and Other Java EE Technologies and the fly likes importing javax.ejb Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and Other Java EE Technologies
Reply Bookmark "importing javax.ejb" Watch "importing javax.ejb" New topic
Author

importing javax.ejb

Andrew Ho
Greenhorn

Joined: Oct 17, 2001
Posts: 2
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
Saloon Keeper

Joined: Jun 25, 2001
Posts: 12513

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.


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
 
IntelliJ Java IDE
 
subject: importing javax.ejb
 
Threads others viewed
connecting an entity bean to a data base in JBuilder
Installation of J2EE
Getting compile error for AdviceClient.java from Head First EJB
EJB using Jboss-IDE 1.6
EJB tutorial