Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

importing javax.ejb

 
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
 
Saloon Keeper
Posts: 22248
151
Android Eclipse IDE Tomcat Server Redhat Java 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.
 
Barry's not gonna like this. Barry's not gonna like this one bit. What is Barry's deal with tiny ads?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic