• 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

can't import javax.ejb.*;

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I'm trying to make the basic EJB project in the Head First EJB book. But I get this problem which say's that the package can't be imported. Currently I'm compiling the code form command prompt. Where are these packages and how do I import them
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They will be included with your applciation server. Which application server are you using?
 
Vickey singh Verma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying , I want to use sun application server through netbeans. Which is also a big problem as after the plugins are installed it asks for the installation directory which I don't know. I had installed the RI mentioned in the Book but now its also not running and complains that Path was not found.
 
author and cow tipper
Posts: 5000
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, you're doing J2EE development with NetBeans?

When you download and install NetBeans 6.5.1, it includes J2EE development tools along with the Glassfish application server. With that installed, you only need to create a new project. Just select Java EE, an EJB module, and then accept the defaults. You will be able to code your application and reference all of the required EJB libraries.

It might be a problem with how you installed NetBeans. Which version did you use? Which version of the JDK did you install? Can you start the Glassfish Server? If you can't, there may be a problem with the GlassFish install, which means you might not have the J2EE libraries properly installed.

-Cameron McKenzie

 
Vickey singh Verma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It a really big problem creating Beans from netbeans. Now I have downloaded the J2ee form the sun's site and have access to the deployment tool. But the files I created earlier i.e advice ,adviceBeans and all have the same error that the package javax.ejb.*; can't be imported. What's wrong now I m doing everything manually , compiling from command prompt. And also I have notice that in command prompt the command j2ee is not recognized. Am I going wrong somewhere???
 
Vickey singh Verma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be i think I'm not including the classpath during compilation. How do I do that??
Should I give the path of the Installation directory of the j2ee I downloaded from sun
 
    Bookmark Topic Watch Topic
  • New Topic