File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Problem with Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem with " Watch "Problem with " New topic

Problem with

Asad Salim

Joined: May 31, 2011
Posts: 13
I m not able to understand from where should I correct JRE_HOME variable and remove "; from the variable

mango-seeker@ubuntu:/usr/local/tomcat6/webapps/jspbook$ /usr/local/tomcat6/bin/ run
Using CATALINA_BASE: /usr/local/tomcat6
Using CATALINA_HOME: /usr/local/tomcat6
Using CATALINA_TMPDIR: /usr/local/tomcat6/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun";
Using CLASSPATH: /usr/local/tomcat6/bin/bootstrap.jar
exec: 506: /usr/lib/jvm/java-6-sun";/bin/java: not found

The problem exist only with run paramter.

Due to this , I feel I m not able to excute the below ant script

Output is

mango-seeker@ubuntu:/usr/local/tomcat6/webapps/jspbook$ ant
Buildfile: /usr/local/tomcat6/webapps/jspbook/build.xml

[echo] Starting Build (JSP Book)

[echo] Turning Off Tomcat
[exec] /usr/local/tomcat6/webapps/jspbook/../../bin/ 506: /usr/lib/jvm/java-6-sun";/bin/java: not found

[echo] Compiling Book's Examples

[echo] Starting Tomcat(JSP Book)
[echo] Build Finished (JSP Book)

Total time: 0 seconds

Although the build is successful , i m confused about the above bold statement.

Any help would be appreciated.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

This is really not so much a Tomcat question as an Ant question.

One thing I recommend is that you replace your relative paths with property-relative paths. For example, instead of

make it be like so:

As far as setting JRE_HOME or JAVA_HOME, the best place to do that is usually to create a $CATALINA_BASE/bin/setenv.bat file and put a "SET" statement in it. If Tomcat detects a setenv.bat file (Windows) or a file (Unix/Linux), it will execute whatever is in that file with the idea that you're setting environment variables there.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Problem with
It's not a secret anymore!