Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-13-2010, 04:42 AM   #1
Registered: May 2010
Posts: 39

Rep: Reputation: 15
Unhappy Problem to set up the JAVA_HOME environment


I tried to install the nutchwax and hadoop as a prequisite for the wera.

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

Anythings wrong with the code?

Thanks in advance and hope to hear from u soon
Old 05-13-2010, 05:13 AM   #2
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92

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:

export $JAVA_HOME
The above basically sets your JAVA_HOME as well as the path to your JRE binary.

Old 05-13-2010, 05:29 AM   #3
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: Reputation: 55
Don't forget to run:



#source /etc/.bash_profile

to reflect the changes.

And You can confirm through:

it should show the correct parameter defined above.
Old 06-14-2012, 10:09 AM   #4
LQ Newbie
Registered: Jun 2012
Posts: 3

Rep: Reputation: Disabled
.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


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
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined xpucto Linux - Newbie 7 06-21-2010 06:30 AM
JAVA_HOME seems to be getting set somewhere other than /etc/profile Neztec Linux - Newbie 8 10-22-2009 07:42 AM
Tomcat5 doesn't find JAVA_HOME environment variable isra_mv Linux - Software 4 09-23-2006 02:42 PM
my JAVA_HOME environment variable changes automaticly petertavenier Linux - Newbie 3 04-20-2006 03:30 AM
# ./ Neither the JAVA_HOME nor the JRE_HOME environment variable is defined Niceman2005 Linux - Newbie 3 06-29-2005 02:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:25 PM.

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