View Full Version : path to java / servlet?
19th November 2004, 03:22 AM
I have cPanel / WHM on my Fedora Core 2 server. I've installed Tomcat 5.x via WHM. I applied a servlet to a domain.
To compile servlets - i need to run the java compiler (javac).
However, to do that - i need to access the JAVA_HOME (since "javac" is
located normally in $JAVA_HOME/bin/javac).
What is the path to java/jsp?
19th November 2004, 05:08 AM
It depends on where you (or your service vendor) installed it.....
For example I use the Java 2 Software Developers Kit Enterprise Edition (j2sdkee) that I installed in "/opt/j2ee"
The actuall Java Developer's Kit (JDK compiler and runtime) are located at (on my machine) "/opt/j2ee/jdk"
In my "/etc/profile" I added
"export JAVA_HOME=/opt/j2ee/jdk" and
if you are installing using Tomcat at home, you will also need to add a
"<Context path="/efr" reloadable="true" docBase="/root/workspace/efr" workDir="/root/workspace/efr/work" />
to your "$TOMCAT_HOME/conf/server.xml" file
The "reloadable='true'" statement means that JSP files will be dynamically recompiled if they are changed...
If you still have problems, you can either post the question here as a followup, or send me a private message
19th November 2004, 05:39 AM
How can I search for this via ssh? What command?
The person on the server with that domain basically wants the path in order to compile the servlets. I'm not too familiar with JSP so please help. Thank you.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.