Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Looks like I do not need to set the JAVA_HOME environment variable when installing Tomcat, anyone can confirm?

share|improve this question

closed as not constructive by Nifle, Mokubai, 8088, Journeyman Geek, Kyle Jul 22 '12 at 9:03

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Maybe because it was already set before? –  slhck Sep 25 '11 at 8:54

2 Answers 2

Open the terminal, then type:

echo $JAVA_HOME

If java_home is set, you'll see a value. I have Tomcat running on my debian server, without java_home set. Why it works? I don't know for certain, but probably because of the use of standard directories for Java, so Tomcat knows where to look. If java is not there, it will complain during installation or during execution.

share|improve this answer

Looking at this answer, it seem you are right. You need to setup a $JAVA_HOME.

share|improve this answer
    
Ah, I got it all wrong. He do needs to set up java_home, but it does not have any input for this when installing Tomcat... –  Radoo Apr 11 '12 at 16:48

Not the answer you're looking for? Browse other questions tagged or ask your own question.