Get your CodeRanch badge!*
The moose likes Beginning Java and the fly likes Enterprise Edition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Enterprise Edition" Watch "Enterprise Edition" New topic
Author

Enterprise Edition

Winston Smith
Ranch Hand

Joined: Jun 06, 2003
Posts: 136
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
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 ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Elam Daly
Greenhorn

Joined: Aug 09, 2003
Posts: 16
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
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).


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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://aspose.com/file-tools
 
subject: Enterprise Edition
 
Similar Threads
integrate J2ME ,JSP and XML in JBuilderX
File db2udbee.rsp
Connect to Style Reports using JDBC Only
how to make executable jar file
How do I start using PL/SQL