LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-20-2003, 08:47 AM   #1
JIV
Member
 
Registered: Feb 2003
Location: India
Distribution: RedHat 9.0
Posts: 90

Rep: Reputation: 15
Help in Java installation


I changed my distribution to RH 9.0
after installing JDK i included the following lines in
.bash_profile
export PATH =/usr/java/j2sdk1.4.1_02/bin :$PATH
but after relogin i can't exec java in terminal
is there any further changes needed
please give me some links
thanx in advance
 
Old 04-20-2003, 08:56 AM   #2
DoubleLetter
Member
 
Registered: Jun 2001
Location: Sharjah, United Arab Emirates
Distribution: Mandrake Linux 10.1
Posts: 132

Rep: Reputation: 15
Try this:

# begin code

PATH=/usr/java/j2sdk1.4.1_02/bin:$PATH

export PATH

# end code

Or, if that doesn't work, then try adding the command to .bashrc, instead of .bash_profile.

That should work.


Best Regards,

Ahsan
 
Old 04-20-2003, 09:04 AM   #3
JIV
Member
 
Registered: Feb 2003
Location: India
Distribution: RedHat 9.0
Posts: 90

Original Poster
Rep: Reputation: 15
thanx mate....
there are 24 terminals in our network
how can we configure java to run for all network users?(may be 60 around)
 
Old 04-20-2003, 09:15 AM   #4
DoubleLetter
Member
 
Registered: Jun 2001
Location: Sharjah, United Arab Emirates
Distribution: Mandrake Linux 10.1
Posts: 132

Rep: Reputation: 15
JIV, I'm 0 at networking.

Better post this one in the networking forum.

Best Regards,

Ahsan
 
Old 04-20-2003, 02:29 PM   #5
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
export PATH =/usr/java/j2sdk1.4.1_02/bin :$PATH
--------------------------------------------------^

kill the space between "bin" and ":$PATH"
 
Old 04-26-2003, 10:29 AM   #6
phantom0810
LQ Newbie
 
Registered: Apr 2003
Posts: 16

Rep: Reputation: 0
To make the setting valid to all users using the computer,
I think u can add the line "export PATH=/usr/java/j2sdk1.4.1_02/bin:$PATH" in /etc/profile,
but for all users in network .... I don't think so.

O.G.
 
Old 04-27-2003, 11:25 PM   #7
caustin
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
or add a java.sh script with the correct path set in directory /etc/profile.d
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
java installation problem franklampard Linux - Software 2 09-27-2005 01:53 AM
java installation Prageem Linux - Software 4 09-20-2005 10:48 AM
Installation of Java WiWa Linux - Software 2 12-04-2003 04:37 PM
Java installation shyamlahari Linux - General 6 10-09-2003 04:18 PM
java sdk 1.4 installation steelrose Linux - Newbie 3 03-12-2002 02:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration