| 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
|
|
|