Compatible Support Forums: Cannot get Java working

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cannot get Java working

#1 User is offline   qshakoor 

  • stranger
  • Group: Members
  • Posts: 5
  • Joined: 20-November 02

Posted 29 November 2002 - 03:19 AM

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
0

#2 User is offline   punkisdead 

  • member
  • Group: Members
  • Posts: 118
  • Joined: 08-August 02

Posted 29 November 2002 - 04:09 AM

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.
0

#3 User is offline   qshakoor 

  • stranger
  • Group: Members
  • Posts: 5
  • Joined: 20-November 02

Posted 29 November 2002 - 09:09 AM

punkisdead,

What is the difference b/w putting it in .bashrc or /etc/profile?

Appreciate your help.

Asim
0

#4 User is offline   punkisdead 

  • member
  • Group: Members
  • Posts: 118
  • Joined: 08-August 02

Posted 29 November 2002 - 01:09 PM

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.
0

#5 User is offline   Tekchip 

  • journeyman
  • Group: Members
  • Posts: 84
  • Joined: 01-June 03

Posted 01 June 2003 - 10:17 AM

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users