Bug 1874788 - eclipse-platform specifies /usr/lib/jvm/java-11/bin/java, which does not exist
Summary: eclipse-platform specifies /usr/lib/jvm/java-11/bin/java, which does not exist
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: eclipse
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mat Booth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-02 08:45 UTC by Doncho Gunchev
Modified: 2020-09-25 16:45 UTC (History)
11 users (show)

Fixed In Version: eclipse-4.16-13.fc32 eclipse-4.16-13.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-12 16:34:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Doncho Gunchev 2020-09-02 08:45:21 UTC
Description of problem:
eclipse.ini from eclipse-platform contains:
  -vm
  /usr/lib/jvm/java-11/bin/java

and /usr/lib/jvm/java-11/bin/java, which does not exist, so after the update it displays an error and exits.

Version-Release number of selected component (if applicable):
eclipse-platform-4.16-11.fc32.x86_64

How reproducible:
always

Steps to Reproduce:
1. update
2. start eclipse

Actual results:
error message displaying the above path stating it does not exist.


Expected results:
working eclipse

Comment 1 Doncho Gunchev 2020-09-02 21:42:08 UTC
Got it working by specifying the correct java-11-*** path in the eclipse.ini file. Removing the "-vm" option breaks C/C++'s indexer.

Comment 2 Lukáš Doktor 2020-09-03 06:00:11 UTC
The same issue for me, the default /etc/eclipse.ini specifies the path without the version suffix

    /usr/lib/jvm/java-11/bin/java


instead of

    /usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64/bin/java

Comment 3 Fedora Update System 2020-09-04 08:24:24 UTC
FEDORA-2020-a8304f5856 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-a8304f5856

Comment 4 Fedora Update System 2020-09-04 08:24:44 UTC
FEDORA-2020-f1577cd763 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-f1577cd763

Comment 5 Mat Booth 2020-09-04 08:28:43 UTC
Yes Eclipse mistakenly expressed a dep on java-headless instead of java-devel. Installing java-11-openjdk-devel should fix the problem, I also submitted an update containing a fixed Eclipse package. Sorry for the inconvenience.

Comment 6 Fedora Update System 2020-09-04 15:28:26 UTC
FEDORA-2020-a8304f5856 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-a8304f5856`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-a8304f5856

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2020-09-04 19:17:05 UTC
FEDORA-2020-f1577cd763 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-f1577cd763`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-f1577cd763

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Doncho Gunchev 2020-09-05 06:42:34 UTC
Fixed, thank you.

Updated and it works, also did install dependencies: java-11-openjdk and java-11-openjdk-devel.

rpmverify eclipse-platform shows that I didn't forget to remove eclipse.ini to get rid of my workaround (no modified files).

Comment 9 Fedora Update System 2020-09-12 16:34:01 UTC
FEDORA-2020-a8304f5856 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2020-09-25 16:45:54 UTC
FEDORA-2020-f1577cd763 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.