Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enterprise Edition

 
Winston Smith
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Elam Daly
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic