Hello,
I had j2se and j2re already installed on my system (windows xp).
Now I downloaded j2EE1.4 with Sun Application Server 8.1 pack. So, it
is an all in one bundle which comes with j2se 5 and j2ee 1.4 sdk , sun
application server, point base database server etc.
I downloaded that from here
http://java.sun.com/j2ee/1.4/download.html#sdk
I am using JCreator LE version IDE for java development. And it has
been working perfectly fine.
Anyway, after downloading J2EE, I made a simple file Monkey.java (and
it uses packages import javax.servlet.* etc) But it won't compile. It
keeps giving me error that package javax.servlet.* not found.
I am told that to write servlet programs, you need to download J2EE
(and I already did that!) What did I do wrong ?
Help would be greatly appreciated.
Thanks.
Remi Arntzen - 29 Jul 2005 18:03 GMT
I had the same problem.
If you are not using an IDE it is much more of a hassel.
all you have to do is set the classpath to point to:
\AppServer\lib\j2ee.jar
or whatever your j2ee directory is.
However, while importing j2ee.jar will cover most of the classes you
would need to use, you may need to add some of the other jar files onto
the classpath.
should work... good luck.
xarora - 29 Jul 2005 21:39 GMT