No, that's not right. Sourcing is really simple, you just enter this into your terminal:
But you need to make sure that you are not
working as root; if you do, you'll source the root's .bashrc instead of your own. That wouldn't break anything but neither would it help to get your application going.
As for the other question, I looked it up:
After unpacking, the user should consult the $HOME/OpenFOAM/OpenFOAM-1.4.1/README file for installation instructions.
OpenFOAM should work with most recent system distributions of the gcc compiler so installation of a binary pack is optional. The binary pack was compiled using SuSE Linux version 10.1+ and is known to be incompatible with system utilities for earlier versions of SuSE Linux.
JAVA is required to run the FoamX case manager only; if you donít use FoamX, you donít need JAVA. Recent releases of the Linux operating system should contain a version of JAVA that is compatible with FoamX. 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.
Hmm, that last part looks awfully confusing. Can you tell me whether there is a hidden bashrc or a cshrc file inside your extracted /openFoam/OpenFoam-1.4.1.?