Cannot get Java working

Hello everyone, I am trying to install Java JRE 1. 3 (also tried 1. 4) to work with my Linux 8. 0 (fresh install). Having no prior knowledge of Linux I followed the instructions provided by Sun website step-by-step.

Linux Customization Tweaking 106 This topic was started by ,


data/avatar/default/avatar01.webp

5 Posts
Location -
Joined 2002-11-20
Hello everyone,
 
I am trying to install Java JRE 1.3 (also tried 1.4) to work with my Linux 8.0 (fresh install). Having no prior knowledge of Linux I followed the instructions provided by Sun website step-by-step. Basically I did not get any error message during install but when I type java -version, I get error message stating cannot find the Command file. I see the /usr/java folder and in there there is a j2re-1_3_1_06/bin folder that has a java file. Is there a step missing? Do I need to set any environments?
 
Appreciate your response.
 
Asim

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar40.webp

118 Posts
Location -
Joined 2002-08-08
make sure that the /usr/java folder is in your path. At the command prompt type
 
export PATH=$PATH:/usr/java/bin
 
If that works then you need to add that to either your .bashrc or /etc/profile file.

data/avatar/default/avatar01.webp

5 Posts
Location -
Joined 2002-11-20
OP
punkisdead,
 
What is the difference b/w putting it in .bashrc or /etc/profile?
 
Appreciate your help.
 
Asim

data/avatar/default/avatar40.webp

118 Posts
Location -
Joined 2002-08-08
If you put it in /etc/profile every user on that system will have that path then, and if you put it in your .bashrc just that user is affected.

data/avatar/default/avatar10.webp

84 Posts
Location -
Joined 2003-06-01
Are you just trying to install it so you can view web based java animations/games? Trying hitting up the netscape web site and the plugins section. There's a web installable .xpi that should get you going with out that script hacking.