CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Installation

Java home how to

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   April 27, 2008, 21:51
Default Can someone explain to me how
Join Date: Mar 2009
Posts: 40
Rep Power: 10
basilwatson is on a distinguished road
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.
basilwatson is offline   Reply With Quote

Old   April 28, 2008, 08:37
Default There may be a bit of a gotcha
Graeme Cottrell
Join Date: Mar 2009
Posts: 30
Rep Power: 10
platopus is on a distinguished road
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 if you can't get it to work.

Regards, Graeme.
platopus is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
home environnement Matthieu FLUENT 0 November 14, 2004 09:41
home environment john FLUENT 2 May 24, 2004 05:55
64-bit processors for home computing Ananda Himansu Main CFD Forum 2 March 16, 2004 13:48
Home environment must be set!! Michael Vredevoort FLUENT 1 April 1, 2002 13:59

All times are GMT -4. The time now is 12:41.