Re: Environment vars (JAVA_HOME) not working on Debian 4

"brian m. carlson" <[email protected]>
Newsgroups gmane.linux.debian.ports.amd64
Message-ID <[email protected]>
On Mon, Jan 16, 2012 at 10:54:37AM +0100, Oscar Vidal wrote:
> Hello List,
> 
> I'm having a wired problem right now and I need some help.
> 
> I'm not able to set the JAVA_HOME variable
> 
> # export JAVA_HOME=/opt/jdk1.6.0_07
> # echo $JAVA_HOME
> /opt/jdk1.6.0_07
> # sudo /opt/apache-tomcat-7.0.23/bin/startup.sh
> Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
> At least one of these environment variable is needed to run this program

sudo clears the environment by default except for certain specific
environment variables.  You will need to use env or the like for this
case or modify /etc/sudoers.conf.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCgAGBQJPFIXBAAoJEL9TXYEfUvaLmR8P/R6XFEsV9//4eSQnY+DlXFbJ
KAF/DduFentkZA6htFpcEB1081gUJiaYQAucIJKSWpM9aVEeTMQjVRY19v52Kzob
cMX6/ngR1k2/30+OHXTja6+4/ANoir/LhaTUYer39ngeMvkZeHg0dPKSB0bSxt1d
V45Elg0jjB4z6oLXl7Y2JTIwswjAkyrTCSSLV8q7M2YiwfnH4+qH0do5CylQtbKa
GHV/0s+4nnwDotPKVYCTmDn2ENCM0wQ0tfp2EHjR630ubCj1VNEtQahjALK57yjg
49GQ3RZZ+dsigdpUrJ0pOiJj+MNqHw7Uzd3j6KUlxa7W2khPbbAr3BosurEVjeOU
rbkduU6eu958VO3iKqBqLiBTIUdTcysrKSAVn6vEk3UYl7nYmt8g0czER1nbNzJZ
QAWmXkmcyK6g9oKbZYjJHKXEhllK+DHPeOXOmxbwtco+fbopcUScgjMXZT+ypVyq
VNO0FQDGZReukMmT/t3fqGJfESmyMU7nlqWPI0nAkkHPRCHPDusAaLhSn2+gi/Hi
N2swbJcfNNJj820vRgTpvlvZhvKx3JUv8Llfk4TazEVtZR5DXEPtrWJluAHC5TJK
sQWp2q8eiE3xGUrKVak5oiDC8ZyRAFXN+NHXTeutDXvysm+fG7zQ18yNF1Mi21i0
u2nymvzRXHbWvVc1reMH
=s6rL
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.