where oracle jdk set java_home?

Colin Law clanlaw at googlemail.com
Sun Oct 20 08:29:09 UTC 2013


On 19 October 2013 22:23, Mauro <mrsanna1 at gmail.com> wrote:
> On 19 October 2013 22:29, Colin Law <clanlaw at googlemail.com> wrote:
>>
>> On 19 October 2013 21:15, Mauro <mrsanna1 at gmail.com> wrote:
>> > I've installed oracle jdk and it has set the environment variable
>> > JAVA_HOME.
>> > Then I've uninstalled oracle jdk but JAVA_HOME is still set.
>> > How can I delete it?
>>
>> See if it is set in /etc/environment or in .bashrc or .profile in your
>> home directory.
>>
>
> I don't see it in any of these files.

Did you install from the Ubuntu repository, what package?
When you uninstalled it did you specify --purge?  If not then the
config files will not have been removed.  I think you can use
dpkg --purge <package>
to remove the config files after a package has been removed.  It
certainly should not do any harm.  If that does not help then install
the package and remove it with
sudo apt-get remove --purge <package>

If still no joy then you could try the sledgehammer approach and
search your complete disk for all files containing JAVA_HOME, that
should find it.  It may take some time.

Colin




More information about the ubuntu-users mailing list