Modify

Opened 9 years ago

Closed 9 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)

josm-alternatives.patch (6.3 KB ) - added by sebastic 9 years ago.

Download all attachments as: .zip

Change History (2)

by sebastic, 9 years ago

Attachment: josm-alternatives.patch added

comment:1 by Don-vip, 9 years ago

Resolution: fixed
Status: newclosed

In 8970/josm:

fix #12033 - Linux: Simplify java alternatives testing in startup scripts (patch by sebastic)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain bastiK.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.