Ok...  I got that much so far...
Here is one of my scripts.
************************************
#!/bin/bash

# Set Java Environment

JAVA_HOME=/usr/java/jdk122
export JAVA_HOME

CLASSPATH=.
export CLASSPATH

JDK_HOME=$JAVA_HOME
export JDK_HOME

JES_INSTALL_DIR=/home/kevin/java/jes2.0
export JES_INSTALL_DIR

JES_JAVA_HOME=$JAVA_HOME
export JES_JAVA_HOME

# Set Path
PATH=$JAVA_HOME/bin:$PATH
export PATH
**************************************
now back to the original problem that I am having.  When I run this script
in a konsole it splits into a seperate window, runs it and then closes.  How
can I run this script so that it runs in the current session so that I may
use that java version?


----- Original Message -----
From: "dfox" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 05, 2002 1:29 PM
Subject: Re: [expert] path variable


> > What you took advantage of is exactly what I want to do.  I am compiling
and
> > running java programs...  and I am using multiple java versions.  I
would
>
> (export JAVAHOME=whatever; other setup commands ; script ) &
>
> That's what I would guess. I mean, whatever is unique to a particular
> java runtime you could isolate into a script, and then run the
> appropriate script.
>
> Can these programs run in their own xterm? Or are they GUI?
>
> > How did you easily access and manage the multiple environments?
>
> Pretty much, it was a matter of remembering which xterm I had open - if
> I title it appropriately (i.e., word perfect console) I could make sure
> I only ran WP from that because it needed a unique setting for its
> libraries, away from everything else.
>
> I imagine you could also script most of this as anything that is run
> in a script should remain unique to that script, environment variables
> and so forth. Last line of the script should probably be 'exec '
> and whichever would be the appropriate java runtime.
>
>
>
>
>


----------------------------------------------------------------------------
----


> Want to buy your Pack or Services from MandrakeSoft?
> Go to http://www.mandrakestore.com
>



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to