File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes question on Eclipse and J2sdkee Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "question on Eclipse and J2sdkee" Watch "question on Eclipse and J2sdkee" New topic
Author

question on Eclipse and J2sdkee

rick collette
Ranch Hand

Joined: Mar 22, 2002
Posts: 208
Hi guys:
I am programming on Eclipse. I installed both j2sdk and j2sdkee, and I also set up system env variables. The strange thing is: Eclipse keeps telling me javax.servlet cannot be resolved. No errors on j2sdk related imports. I did not set JAVA_HOME classpath var on Eclipse, but it can resolve its imports. Why can't it resolve j2ee imports?? Thanks.
rick
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
The Eclipse projects are all having their own classpaths. You will need to include the necessary jar files to the build path at the projects property page. Take a look at the help.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
rick collette
Ranch Hand

Joined: Mar 22, 2002
Posts: 208
Originally posted by Ilja Preuss:
The Eclipse projects are all having their own classpaths. You will need to include the necessary jar files to the build path at the projects property page. Take a look at the help.

Thank you, Ilja. I did not set up JDK classpath on Eclipse, but it works fine. For J2EE1.3.1, Eclipse just give a bunch errors, even if I include j2ee.jar as a classpath var. I am not sure what j2ee jar files I need to include. Could you be more specific on this?
Thanks.
Anders Olsen
Greenhorn

Joined: Apr 17, 2003
Posts: 13
As Ilja said, you should not setup j2ee.jar in your classpath environment, since Eclipse does not use it. Instead you start Eclipse, select properties for your project. Then add the j2ee.jar (or whatever it is called) under Java Build Path, Libraries.
Regards
Anders
 
 
subject: question on Eclipse and J2sdkee
 
Threads others viewed
J2sdk 1.4.2_10 or J2sdk 1.3.1_19
EJB 3.0 remove Entity
Tomcat will not start - ClassNotFoundException
Novice Maven User
Compile Error
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com