Make j2re 1.4.2 available to all apps
I installed j2re 1.4.2 on my SuSE 8.2 system from rpm without any problems. However I cannot run java commands from the console. i.e. if I type java it says bash: java: command not found If I enter: export PATH="/usr/java/j2re1.4.2/bin":$PATH then: export JAVA_HOME="/usr/java/j2re1.4.2" Then java will start to work. I have to do this for every new console window. What is the correct way to make j2re available to all my console windows and applications? _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
** Reply to message from "James Ward"
I installed j2re 1.4.2 on my SuSE 8.2 system from rpm without any problems. However I cannot run java commands from the console. i.e. if I type java it says bash: java: command not found If I enter: export PATH="/usr/java/j2re1.4.2/bin":$PATH then: export JAVA_HOME="/usr/java/j2re1.4.2"
Then java will start to work. I have to do this for every new console window. What is the correct way to make j2re available to all my console windows and applications?
In my 8.2 there are 2 symlinks in /usr/lib, java and java2. Both pointed to Blackdown on installation. I installed IBM 1.4.1, deleted the symlinks and redid them to point to /usr/lib/IBMJava2-141/. SuSE seems to find the "jre/bin" part without any other help. Ed Harrison
You must put the command export JAVA_HOME=/usr/java/j2re1.4.2 at your .bashrc or .bash_profile and also open the /etc/java/.....i don't remember the name.... and put the right difinitions for your j2re Regards Stelios Asmargianakis www.climbincrete.com James Ward wrote:
I installed j2re 1.4.2 on my SuSE 8.2 system from rpm without any problems. However I cannot run java commands from the console. i.e. if I type java it says bash: java: command not found If I enter: export PATH="/usr/java/j2re1.4.2/bin":$PATH then: export JAVA_HOME="/usr/java/j2re1.4.2"
Then java will start to work. I have to do this for every new console window. What is the correct way to make j2re available to all my console windows and applications?
_________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
participants (3)
-
Ed Harrison
-
James Ward
-
Stelios