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 05-13-2010, 03:42 AM   #1
LinpusKelvin
Member
 
Registered: May 2010
Posts: 39

Rep: Reputation: 15
Unhappy 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
 
Old 05-13-2010, 04:13 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
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
 
Old 05-13-2010, 04:29 AM   #3
ajeetsinghraina
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: Reputation: 55
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.
 
Old 06-14-2012, 09:09 AM   #4
nestoru
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 http://thinkinginsoftware.blogspot.c...me-is-not.html
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10: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