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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-13-2010, 03:42 AM
|
#1
|
Member
Registered: May 2010
Posts: 39
Rep:
|
Problem to set up the JAVA_HOME environment
Hi,
I tried to install the nutchwax and hadoop as a prequisite for the wera.
Problem:
localhost: Permission denied (publickey,gssapi-with-mic,password).
starting jobtracker, logging to /root/hadoop-0.20.2/bin/../logs/hadoop-root-jobtracker-localhost.localdomain.out
Error: JAVA_HOME is not set.
source code:
tar xfz cd hadoop-0.20.2.tar.gz
JRE_HOME=/usr/java/jre1.6.0_20; export JRE_HOME
cd hadoop-0.20.2/bin
./start-all.sh
Anythings wrong with the code?
Thanks in advance and hope to hear from u soon
|
|
|
05-13-2010, 04:13 AM
|
#2
|
Member
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559
Rep:
|
Hi
I've never used the applications you mention, however; generally most Java applications and/or app servers require you to set the JAVA_HOME environment variable.
So basically add something similar to the below to your .bash_profile:
Code:
JAVA_HOME=/my/path/to/java/jdk1.6.0_19
export $JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
The above basically sets your JAVA_HOME as well as the path to your JRE binary.
Cheers,
Yas
|
|
|
05-13-2010, 04:29 AM
|
#3
|
Member
Registered: May 2010
Location: India
Distribution: Ubuntu 7.04/8.04/8.10/10.04, RHEL 6, OpenSUSE,Mandriva,Fedora, CentOS, XandrOS, Slackware, OpenSolar
Posts: 155
Rep:
|
Don't forget to run:
#bash
or
#source /etc/.bash_profile
to reflect the changes.
And You can confirm through:
echo $JAVA_HOME
it should show the correct parameter defined above.
|
|
|
06-14-2012, 09:09 AM
|
#4
|
LQ Newbie
Registered: Jun 2012
Posts: 3
Rep:
|
.bashrc must contain the variable export
The problem here is about an old discussion: Shell types (interactive, non interactive, login, non login). I have posted a solution in http://thinkinginsoftware.blogspot.c...me-is-not.html
|
|
|
All times are GMT -5. The time now is 11:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|