CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Java home how to

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2008, 22:51
Default Can someone explain to me how
  #1
Member
 
Stephen
Join Date: Mar 2009
Posts: 48
Rep Power: 17
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, 09:37
Default There may be a bit of a gotcha
  #2
Member
 
Graeme Cottrell
Join Date: Mar 2009
Posts: 30
Rep Power: 17
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 openfoam.co.uk if you can't get it to work.


Regards, Graeme.
platopus is offline   Reply With Quote

Reply


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 Off
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 06: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 14:59


All times are GMT -4. The time now is 16:51.