Installed Sun Java 6 - configuration problem when running as sudo
Posted
by
HorusKol
on Ask Ubuntu
See other posts from Ask Ubuntu
or by HorusKol
Published on 2011-01-07T05:20:21Z
Indexed on
2011/01/07
5:58 UTC
Read the original article
Hit count: 344
I have install Sun Java 6 on an Ubuntu server and set an environment variable in the default profile as per the instructions at http://www.edugate.ie/workshop-guides/shibboleth-2-identity-provider-installation-linux-debian-or-ubuntu
I then try to run an installer for a Java servlet - but when I run it as myself, it cannot create the required directory in /opt. When I run it as sudo, I am told that JAVA_HOME is not correct and it doesn't even start the installer - shouldn't this be coming from /etc/profile like it is for my normal user?
© Ask Ubuntu or respective owner