LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-16-2008, 11:21 PM   #1
mahi
LQ Newbie
 
Registered: Sep 2007
Location: mysore
Distribution: Debian
Posts: 16

Rep: Reputation: 0
unable to set JAVA_HOME


hello people....
I was trying to install apache-tomcat on my debian system....
prior to it it asked me to install JDK...
i did tat successfully....
but at the i am unable to set JAVA_HOME variable...
that is even after editing /etc/profile
i added these two lines after export PATH in tat file

JAVA_HOME="/usr/lib/jdk"
export JAVA_HOME

to install tomcat this variable needs to be set...
so anybody with any idea please help.....
thank you...
 
Old 11-17-2008, 12:09 AM   #2
yowi
Member
 
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 209

Rep: Reputation: 54
assuming you are using bash try /etc/bash.bashrc
this somewhat confusing behaviour of bash is described in the INVOCATION section of the bash manpage

Note that only new shells pick up the changes.
 
Old 11-17-2008, 02:04 AM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
export $JAVA_HOME
 
  


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
JAVA_HOME seems to be getting set somewhere other than /etc/profile Neztec Linux - Newbie 8 10-22-2009 06:42 AM
How to set JAVA_HOME for Tomcat Technomot1 Linux - Newbie 2 11-26-2007 03:50 AM
How to set JAVA_HOME in catalina.sh rajaniyer123 Linux - Software 1 10-06-2007 04:34 AM
How to set JAVA_HOME in REDHAT 9.0 Linux? tejpatil Linux - Newbie 5 05-23-2004 01:17 PM
How to set JAVA_HOME in REDHAT 9.0 Linux? tejpatil Linux - General 1 05-23-2004 06:32 AM


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