environment variable
Jerry Feldman
gaf at blu.org
Sun Apr 18 13:22:13 EDT 2004
JAVA_HOME points to the directory containing the Java bin, include, jre
and lib subdirectories. On any installation you might have multiple
JDKs.
On mine:
JAVA_BINDIR=/usr/lib/java/bin
JAVA_HOME=/usr/lib/java
JAVA_ROOT=/usr/lib/java
and /usr/lib/java is symlinked to SunJava2-1.4.
Note that some applications that use Java may be started from a script
that may either test to see if JAVA_HOME is set or override it, which
they can do without affecting other processes.
On Sun, 18 Apr 2004 13:10:54 -0400
"D.E. Chadbourne" <235u at comcast.net> wrote:
> Jerry Feldman wrote:
> <snip>
> > With respect to the other answers and solutions:
> > You cannot export an environment variable to other processes already
> > running at the time. The only way another process may inherit an
> > environment variable is a child process. In the above case, you
> > could have exported JAVA_HOME before you ran jedit.
> > export PATH="$PATH:/opt/j2sdk_nb/j2sdk1.4.2/jre/bin
> > export JAVA_HOME=/opt/j2sdk_nb/j2sdk1.4.2/jre/lib
> > /usr/bin/jedit
> >
> > Assuming this is the correct location for JAVA_HOME.
> >
> > Probably the best way to do this is in your .bashrc and/or your
> > .xsession or best in /etc/profile
> >
> > On my system it is done when /etc/profile sources
> > /etc/profile.d/alljava.sh.
> >
> > This way you will get all the appropriate JAVA environment
> > variables.
>
> great answer. i wrote my previous email prior to receiving yours. i
> think the location for JAVA_HOME is the problem eh? what is
> JAVA_HOME?
>
> [eric at mathPlayPen eric]$ export
> PATH="$PATH:/opt/j2sdk_nb/j2sdk1.4.2/jre/bin"
> [eric at mathPlayPen eric]$ export
> JAVA_HOME=/opt/j2sdk_nb/j2sdk1.4.2/jre/lib[eric at mathPlayPen eric]$
> /usr/bin/jedit/usr/bin/jedit: line 13:
> /opt/j2sdk_nb/j2sdk1.4.2/jre/lib/bin/java: No such file or directory
> /usr/bin/jedit: line 13: exec:
> /opt/j2sdk_nb/j2sdk1.4.2/jre/lib/bin/java: cannot execute: No such
> file or directory
> [eric at mathPlayPen eric]$
>
> i don't understand the first problem because there IS a file called
> java in /opt/j2sdk_nb/j2sdk1.4.2/jre/lib/bin/ isn't that what it's
> looking for?
>
> mmmnnn...
>
> i'll search around some more and try out some shots in the dark prior
> to posting again. thanks for any ideas, eric.
>
>
> --
> Bohr, Niels Henrik David (1885-1962)
> An expert is a man who has made all the mistakes,
> which can be made, in a very narrow field.
>
--
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.blu.org/pipermail/discuss/attachments/20040418/d9ef96d3/attachment.sig>
More information about the Discuss
mailing list