Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Running Jakarta Tomcat on OS X' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Running Jakarta Tomcat on OS X
Authored by: Youjie on Apr 23, '04 01:58:14PM

I'd like to know proper steps to make CLASSPATH in the way of Mac.
I'm beginner. It seems failure to read-out by ".tcshrc" file under Mac which specified some "jar" file. That is to let JAVA program I made to import particular Class.
For example : "javax.servlet.http.HttpServletRequest" of "Servlet.jar" plus JDBC Driver.

1) Package name is written in header of some JAVA files (Servlet, Bean, Interface). Compiler says "package javax.servlet.http does not exist" But the class file which was compiled in PC(= Windows, command prompt) can be able to work in my Macintosh. But compiler doesn't allow it to make class file after modifying sources (Servlet, Bean, Interface) in my Macintosh due to lack of package.

2) Specified JDBC Driver below :
Of course class-file including above line surely locate under context and it worked well unless one need database. In PC it runs well.

I prepared ".tcshrc" file and put it under root of Home directory. Following line written on it:
setenv CLASSPATH /usr/local/jakarta-tomcat-4.1.18/lib/mysql-connector-java-3.0.11-stable-bin.jar:.
setenv CLASSPATH /usr/local/jakarta-tomcat-4.1.18/common/lib/servlet.jar:.

Already make sure path of JDBC Driver (mysql-connector-java-3.0.11-stable-bin.jar) I set are same location.
Suspect CLASSPATH doesn't work recognition maybe?

Does anyone know how to do?

[ Reply to This | # ]