CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Java home how to (http://www.cfd-online.com/Forums/openfoam-installation/57394-java-home-how.html)

basilwatson April 27, 2008 21:51

Can someone explain to me how
 
Can someone explain to me how to do this , I am unsure of how to proceed.

Kind Regards Stephen

To use the JAVA supplied with the system, you need to set the $JAVA_HOME environment variable to the path of the installation, e.g. '/usr'. This is set in the $HOME/OpenFOAM/OpenFOAM-1.4.1/.bashrc (or .cshrc) file.

platopus April 28, 2008 08:37

There may be a bit of a gotcha
 
There may be a bit of a gotcha in there somewhere, because if you tell it the system's Java is somewhere that places the system's C++ compiler on the path before the C++ compiler installed under $HOME/OpenFOAM/linux, you can run into trouble.

From memory, it can be overcome with a simple edit of one of the OpenFOAM shell initialisation scripts. Sorry, but I can't remember which one.

Probably safer to use the Java and C++ downloadable from openfoam.co.uk if you can't get it to work.


Regards, Graeme.


All times are GMT -4. The time now is 00:29.