FS#41826 - [java-common] Update to 1.7 breaks default setting of java environment, requires archlinux-java fix

Attached to Project: Arch Linux
Opened by cfr (cfr42) - Thursday, 04 September 2014, 21:34 GMT
Last edited by Guillaume ALAUX (galaux) - Monday, 08 September 2014, 19:37 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Guillaume ALAUX (galaux)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 8
Private No

Details

Description:

Update of java-common to 1.7 breaks default setting of java environment, requiring archlinux-java fix.

The specific error I got was that too many levels of symbolic links were involved to resolve /usr/lib/jvm/default. This seems to have been because /usr/lib/jvm/default pointed to default, and /usr/lib/jvm/default-runtime pointed to default/jre. That is, the first pointed to itself and the second pointed to something non-existent.

Additional info:

* java-common 1.7

* Unchanged by update:
$ printenv | grep JAVA
_JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
JAVA_HOME=/usr/lib/jvm/default

* Java worked fine prior to update so I assume a default environment was set although I'd not checked as I'd no reason to.

* After update:
$ archlinux-java status
Available Java environments:
java-7-openjdk
No Java environment set as default

* archlinux-java fix fixes the problem:

$ archlinux-java status
Available Java environments:
java-7-openjdk (default)

Steps to reproduce:

Update to java-common 1.7 with recommended setting of JAVA_HOME as /usr/lib/jvm/default.
This task depends upon

Closed by  Guillaume ALAUX (galaux)
Monday, 08 September 2014, 19:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 1-8
Comment by ... (spider007) - Friday, 05 September 2014, 07:04 GMT
Yeah I have the same issue and it's also reported on the forums @ https://bbs.archlinux.org/viewtopic.php?id=186640. It seems to me that this is a bug in the java-common package?
Comment by Jonas Byström (acidflash) - Friday, 05 September 2014, 08:15 GMT
I did get the same error on two of the computers i try it on.
Comment by Guillaume ALAUX (galaux) - Monday, 08 September 2014, 19:37 GMT
As said: "archlinux-java fix" will fix this. Last "-8" pkgrel does not try to fix this link any more.

Loading...