Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#52978 - [java-runtime-common] why not export JAVA_HOME

Attached to Project: Arch Linux
Opened by leesei (leesei) - Wednesday, 15 February 2017, 17:09 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 15 February 2017, 17:21 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
`archlinux-java` does select jvm but does not set JAVA_HOME


Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:

I installed `aur/jdk` and `extra/java-runtime-common`.
I can successfully set `java-8-jdk` as default with `archlinux-java`.
However when I run `scala` it reports this error:
```
cat: /usr/lib/jvm/jdk-7-oracle-x64//release: No such file or directory
Welcome to Scala 2.12.1-20161205-201300-2787b47 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_112).
Type in expressions for evaluation. Or try :help.

scala>
```

I am using ZSH and have to add this to my `.zshrc` to fix the above issue:
`export JAVA_HOME="/usr/lib/jvm/default/"`

Why not include this export in `/etc/profile.d/jre.sh`?
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 15 February 2017, 17:21 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#44806 

Loading...