This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes which jar file for classpath ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "which jar file for classpath ?" Watch "which jar file for classpath ?" New topic

which jar file for classpath ?

hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

At my office on my machine i have weblogic 8.1 and tomcat installed.

weblogic have 2.3 version of servlet and
tomcat have 2.4 version of servlet

weblogic is for production purpose (development of servlet, jsp and ejb)
and tomcat is for my own practice. (just for servlet and jsp)

i have weblogic.jar as well as servlet-api.jar in my class path.

now when i compile my servlet which jar file compiler will use to create the classes.

if the compiler chooses servlet-api.jar will my servlet run in weblogic
if the compiler chooses weblogic.jar will my servlet run in tomcat

Nobuhiro Watsuki
Ranch Hand

Joined: May 07, 2004
Posts: 81
i'd use the classpath option in the javac command

SCJP, SCMAD, SCWCD, SCBCD, CCIE (written), IBM 287<a href="" target="_blank" rel="nofollow">.</a>
I agree. Here's the link:
subject: which jar file for classpath ?
It's not a secret anymore!