Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deploy compiled servlets w/ only J2SE 1.4?

 
Salvador Cecilio
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is is possible to deploy Servlet files compiled on a J2EE machine to a Solaris/Apache/Tomcat server with only J2SE 1.4 installed?
[ May 25, 2006: Message edited by: Bear Bibeault ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can deploy using an ANT script and ant 1.6.5 works with Java 1.4 ... so yes you can.
 
Salvador Cecilio
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool, I was wondering how existing Servlet files on the Tomcat server were working, despite not being able to compile the java source code files on that same server machine.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat provides what it needs from j2ee with the tomcat/common/lib/servlet-api.jar lib.
You should be able to compile your servlet code on the machine with j2se if you have that jar file in your classpath.
 
Salvador Cecilio
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep, set classpath to the server.jar file and it compiled.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic