Thanks, but I have Bash_profile or bash-profile (no bash_profile) see below Should I use bash-profile and put the export commands after export PAGER LESS TERMCAP----------etc.? or ? [andrew@localhost startup-files]$ more bash-profile # This is the filename where your incoming mail arrives. MAIL=~/mbox MAILCHECK=30 HISTFILE=~/.history/history.$HOSTNAME PATH1=/usr/homes/chet/bin.$HOSTTYPE:/usr/local/bin/gnu: PATH2=/usr/local/bin:/usr/ucb:/bin:/usr/bin/X11:. PATH3=/usr/bin:/usr/new/bin:/usr/contrib/bin PATH=$PATH1:$PATH2:$PATH3 EDITOR=/usr/local/bin/ce VISUAL=/usr/local/bin/ce FCEDIT=/usr/local/bin/ce SHELL=${SHELL:-${BASH:-/bin/bash}} PAGER=/usr/local/bin/less LESS='-i -e -M -P%t?f%f :stdin .?pb%pb\%:?lbLine %lb:?bbByte %bb:-...' # # Bogus 1003.2 variables. This should really be in /etc/profile # LOGNAME=${USER-$(whoami)} TZ=US/Eastern export HOME VISUAL EDITOR MAIL SHELL PATH TERM export PAGER LESS TERMCAP HISTSIZE HISTFILE MAIL MAILCHECK LOGNAME TZ PS1="${HOSTNAME}\$ " PS2='> ' export PS1 PS2 umask 022 if [ -f /unix ] ; then stty intr ^c # bogus fi if [ -f ~/.bashrc ] ; then . ~/.bashrc fi [andrew@localhost startup-files]$ On Tue, 2004-02-17 at 20:49, Raghu V Vadapalli wrote: > copy these two lines to your ~/.bash_profile and you are > all set with your environment. > export JAVA_HOME=/usr/java/j2re1.4.2_03 > export PATH=$JAVA_HOME/bin:$PATH > > But if you want to start java -jar * that's a different story as you > have to work on init scripts. As long as you want just a launcher > copying these two lines is good enough. > > > On Tue, 2004-02-17 at 15:33, Andrew Levey wrote: > > Hi > > > > Some help needed with > > > > Set environment and > > > > Application launcher > > > > > > I want to use the html editor Arachnophilia 5.2 build 1959 (12/08/2003) > > (Java) > > > > ( I used the vers. 4 (not java) on windows before switching to Fedora > > Linux) > > > > I installed the Java runtime j2re-1_4_2_03-linux.i586.rpm from the sun > > site and downloaded Arachnophilia.jar > > > > > > After changing the environment : > > > > export JAVA_HOME=/usr/java/j2re1.4.2_03 > > > > export PATH=$JAVA_HOME/bin:$PATH > > > > > > In the arachnophilia directory entering : > > > > java -jar Arachnophilia.jar > > > > Everything runs tickety boo > > > > > > How do I automate this ? > > > > > > The environment changes are lost when the terminal window is closed > > > > Do I need a script to make these changes for each session ? > > > > Should it be scripted somewhere ? (how?) > > > > > > I also want to run a launcher on the desktop for the application. I > > presume I need a script to run java -jar Arachnophilia jar from the > > arachnophilia directory ? > > > > > > The arachnophilia website suggests a plain text desktop shortcut:- > > > > [Desktop Entry] > > > > Exec=java -jar (path to Arachnophilia JAR file) / Arachnophilia.jar > > > > Name=Arachnophilia > > > > Type=Application > > > > > > my path being /usr/local/src/arachnophilia/Arachnophilia.jar > > > > > > I tried that and get : Failed to execute child process java (No such > > file or directory) > > > > > > As you can see I'm new to linux. > > > > All help gratefully received > > > > Regards > > > > Andrew Levey > -- >