IndianWebPortal.com

Something Different In Linux

Home » Error and solution » Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

Error:  Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

Solution :

If JAVA_HOME and JRE_HOME path is not defined on the server then it shows above error. You must set the paths on the server for JAVA_HOME and JRE_HOME. Below commands will help you to set the paths for JAVA_HOME and JRE_HOME respectively.

JAVA_HOME

Quote:
[root@server /] export JAVA_HOME=/usr/local/java

JRE_HOME

Quote:
[root@server /] export JRE_HOME=/usr/local/jdk

Start/Stop tomcat on the server.


Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...