Results 1 to 1 of 1
Thread: installing java
-
11-05-2001, 02:34 PM #1Junior Guru Wannabe
- Join Date
- Oct 2001
- Posts
- 72
installing java
Hi all,
I have a program someone wrote for me a while back that uses java. It ran great on my old server.
Now I have moved to a new server, a raq 4i, and need to get the program restarted.
First time I tried to run it, I typed:
====
cd /the/path/to/script
java scriptname
====
and the server answered
====
bash: java: command not found
====
After looking for jre in the directories and finding it wasn't already installed, I installed
j2sdk-1_3_1_01-linux-i386.bin as per the instructions on the sun website, and that seemed to go ok.
Again I went to run the program:
====
cd /the/path/to/script
java scriptname
====
But still got:
====
bash: java: command not found
====
So I asked around a bit and someone told me I needed to put the path to the java bin into the path variable in etc/profile. So I changed the path in profile to:
PATH="$PATH:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/local/bin/jre1.3.1_01/bin"
Tried running the program now and I get a slight change:
====
sh: java: command not found
====
('sh' instead of 'bash').
What does the change from bash to sh mean?
Any help you can provide to get this working would be greatly appreciated
Chris