• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in installing Java on Linux  RSS feed

 
jyothi karampuri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to Linux and I have to install java on Linux for converting applets into gif images ...
I am having problem running java or javac command(from bin directory) when I am done with the installation procedure for jsdk from java.sun.com and for jdk also from blackdown java.I have added path to bin in path also
it comes with
bash:java command not found.
Can anyone help out where I am doing wrong.
I have Redhat 6.2
Thanks
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do:
"echo $PATH" and tell us what it says.
If you have an environment variable JAVA_HOME
then do "echo $JAVA_HOME" and tell us what it says.
What does "echo $SHELL" say?
Tell us the exact path to the JRE and/or SDK.
It may be something like:
/usr/local/j2sdk1.3.1_01
do "find / -name=java -print" to find the java executable.
Where are you defining the evironment variables?
That is, in which file are your export or set commands that define JAVA_HOME, PATH?
It maybe helpful to log out and back in again before you do the above (do it anyway).
Maybe in finding those out you will solve your problem. If not, repost with all the information.
[ October 23, 2002: Message edited by: Barry Gaunt ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!