LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2011, 10:49 AM   #1
agetp001
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Rep: Reputation: Disabled
Java environment variable change


how do you change a java environment variable, and why would it matter based on login id??
 
Old 06-08-2011, 04:22 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
You might need to be a bit clearer with your question... Two possible interpretations I can think of are:

(1) Changing or reading the environment variables (ie. PATH, TERM, etc.) from Java - information can be found here. I'm not sure why it would matter, but it would certainly change based on login ID, because different users will have different .bashrc / .zshrc files, so will have different environment variables.

(2) Setting up the environment variables to allow you to use java to compile things - linked here.

Obviously, if I have misunderstood your question, please do correct me

Hope this helps,
 
Old 06-08-2011, 04:42 AM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,362

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by agetp001 View Post
how do you change a java environment variable, and why would it matter based on login id??
A variable named JAVA_HOME which is added to the PATH variable in system. You can check their values.
by:
PHP Code:
echo $PATH
echo $JAVA_HOME 
If the JAVA_HOME variable is not in the PATH variable of the user then the user will not able run java on the machine.
 
Old 06-20-2011, 03:38 PM   #4
agetp001
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks all, just one more...

are these variables normally found in the login environment variable of the administrator or in the Java install environment?
 
Old 06-21-2011, 05:49 AM   #5
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
They would be found in your own login script - .bashrc, or the equivalent for the shell that you use
 
1 members found this post helpful.
Old 06-22-2011, 11:24 AM   #6
agetp001
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
thanks a bunch
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how can i change the value of a environment variable through shell script ? manomohan Programming 8 02-11-2010 10:55 PM
How can I change my present desktop environment to Java DE on Solaris 10? quantify Solaris / OpenSolaris 1 11-07-2008 02:30 AM
change PS1 environment variable from c program sagsriv Linux - Newbie 4 03-10-2008 02:39 PM
Environment Variable: how to change env DISPLAY in Redhat 9 lucastic Linux - General 2 07-21-2004 05:15 PM
Help php compile javac or java system environment variable antony_csf Programming 1 06-16-2004 02:12 PM


All times are GMT -5. The time now is 07:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration