Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.import cannot be resolved

 
abhi pawar
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am using a import : import javax.ejb.*; in eclipse it gives me an error : import javax.ejb cannot be resolved
I will be deploying the application on weblogic server
should I include j2ee.jar in my classpath or add the jar to the lib of my application?
I tried to find j2ee.jar in the weblogic installation folder but couldn't find it.


Thanks
 
Tim Hagberg
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe if you download the J2EE SDK you receive an executable which will place the classes in your JDK, so you shouldn't have to worry about any of that.

Here's the download link for the SDK.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just make sure EJB jar file (whether it is j2ee.jar or something else) is included in the CLASSPATH of Eclipse project.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic