You are not logged in.

#1 2013-07-30 23:46:55

sxtynnmach1
Member
From: 127.0.0.1
Registered: 2009-10-31
Posts: 12

[SOLVED] jdk6 JAVA_HOME overriding jdk JAVA_HOME

Placing this here for future reference to others having the same problem

Symptoms:

  • jdk6-compat installed alongside jdk

  • $JAVA_HOME still defined as /opt/java6 upon login

Problem:
in /etc/profile it uses:

if test -d /etc/profile.d/; then
	for profile in /etc/profile.d/*.sh; do
		test -r "$profile" && . "$profile"
	done
	unset profile
fi

which causes jdk6.sh to be sourced after jdk.sh

Solution:
Set your locale, aka LANG to something like en_US.UTF-8 before it performs the above code block

Why?
Setting the proper local will tell the shell to expand * globs in the expected alphanumeric order that the jdk6-compat AUR package intended.


Hello Darkness, my old friend. I've come to talk with you again.

Offline

Board footer

Powered by FluxBB