• Post Reply Bookmark Topic Watch Topic
  • New Topic

What do I need in order to compile a servlet  RSS feed

 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

What do I need to have on my computer so I could compile a servlet into a *.class file that I could later upload to a remote server.

I currently have Eclispe installed on my computer (Windows). Is that enought?
Do I need to install anything more so I could compile the servlet? Do I need to install any server on my computer?

I greatly appreciate your help.

Joseph
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you'll need a Java compiler of the same or an earlier version from what's installed on the machine running your application server.
Those mostly run 1.4 now so Eclipse should be OK.

Then you need the J2EE SDK to get the required libraries you'll compile against into your project classpath. You can download that from http://java.sun.com

Apart from that you may need a JDBC driver for whatever database you'll be accessing. Those are usually obtained from the database manufacturer.

You may require other libraries as well depending on the scope and nature of your project. What those are are impossible to tell without knowing what the scope and nature of the project are.
 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a java directory which the redme.html inside it says
JavaTM 2 Platform Standard Edition - Development Kit 5.0

Is that enough for the J2EE requirement?

Also, a few days ago I installed another java directory. I am not sure if it functioning. The directory is called c:\j2sdkee1.3.1

You can read my remark here:
http://www.coderanch.com/t/398389/java/java/Where-Java
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
J2SE is your compiler.
J2EE is your J2EE (doh) SDK.
In that installation you'll find a jar file called j2ee.jar which you should add to the classpath for your project and when compiling your stuff.
That's all.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!