Opened 10 years ago
Closed 10 years ago
#12033 closed enhancement (fixed)
Simplify java alternatives testing
| Reported by: | sebastic | Owned by: | bastiK |
|---|---|---|---|
| Priority: | normal | Milestone: | 15.11 |
| Component: | Ubuntu package | Version: | |
| Keywords: | linux | Cc: | sebastic |
Description
The attached patch simplifies the alternatives testing for the java executable.
The JDK versions are tested in order of preference: JDK 8, 7, 9.
When no (non-headless) OpenJDK package is installed, test for the Oracle JDK versions.
Break out of testing loops when a suitable java command is found.
A single list of java commands is used, instead of a list for each version.
The patch updates /usr/bin/java for both tested & latest.
Attachments (1)
Change History (2)
by , 10 years ago
| Attachment: | josm-alternatives.patch added |
|---|
comment:1 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |



In 8970/josm: