environment variable

D.E. Chadbourne 235u at comcast.net
Sun Apr 18 13:10:54 EDT 2004


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.




More information about the Discuss mailing list