I'm currently using j2sdk1.4 and I'd like to use some of the libraries in the enterprise edition, such as javax.servlet.http.*. How do I add library files from enterprise edition to my current j2sdk? Or do I need to use j2ee as a development environment?
for (int i = today; i < endOfTime; i++) { code(); }
Barry Gaunt
Ranch Hand
Joined: Aug 03, 2002
Posts: 7729
posted
0
The easiest way is to install the J2EE SDK and include the %J2EE_HOME%\lib\j2ee.jar file on your CLASSPATH. The J2EE API documention comes combined with the J2EE SDK, you will need that too. That reminds me I haven't done it on my new PC myself yet.
OK done it. I used the J2EE 1.3.1 SDK so my J2EE_HOME variable is set to c:\j2sdkee1.3.1 [ August 08, 2003: Message edited by: Barry Gaunt ]
I don't think you need to do anything. I have only the j2sdk1.4.2 on my systems, and servlets work fine. In fact, I have no j2ee.jar anywhere on my system. But I'm a java noob, so I could be wrong.
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
posted
0
elam, What do you mean by "servlets work fine"? To compile a Servlet, the compiler must be able to find the necessary packages and class files. Sometimes these are found in the j2ee.jar and sometimes they are found in a Servlet.jar (which is included with a Tomcat installation).
Winston Smith, Welcome to JavaRanch! We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy. Thanks Pardner! Hope to see you 'round the Ranch!h [ August 15, 2003: Message edited by: Dirk Schreckmann ]
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.