Bug 1874393
| Summary: | unable to launch Eclipse on F32: No Java virtual machine was found | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Felix Schwarz <fschwarz> |
| Component: | eclipse | Assignee: | Mat Booth <mat.booth> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 32 | CC: | akurtako, andjrobins, dbhole, ebaron, eclipse-sig, jerboaa, jjohnstn, jvanek, mat.booth, rgrunber |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | eclipse-4.16-13.fc32 eclipse-4.16-13.fc33 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-09-12 16:33:59 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Felix Schwarz
2020-09-01 09:22:32 UTC
ll /usr/lib/jvm/java-11/bin/java -rwxr-xr-x 1 root root 19008 Jul 18 19:45 /usr/lib/jvm/java-11/bin/java However is driven by alternatives so you can not install by it. We had an patch fixing this issue, will double check it. readlink -f /usr/lib/jvm/java-11/ /usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64 rpm -qf /usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64 java-11-openjdk-headless-11.0.8.10-2.fc32.x86_64 But I doubt having headless jre is enough for eclipse. They need full sdk so java-11-openjdk-devel. In F32 eclipse are configuredto run with java8. So you abve to have installed java-1.8.0-openjdk-devel to make eclispe running without mingling with -vm arg. Likley somethng wen wrong with dependecies in eclipse pkg, but Mat wlil know more. FEDORA-2020-a8304f5856 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-a8304f5856 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. 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. 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. Thank you for the update. Unfortunately it does not fix my issue and I think I left out some information in the beginning: $ ls -l /usr/lib/jvm/ total 8 lrwxrwxrwx. 1 root root 26 Sep 5 10:06 java -> /etc/alternatives/java_sdk lrwxrwxrwx. 1 root root 32 Sep 1 10:27 java-1.8.0 -> /etc/alternatives/java_sdk_1.8.0 lrwxrwxrwx. 1 root root 40 Sep 1 10:27 java-1.8.0-openjdk -> /etc/alternatives/java_sdk_1.8.0_openjdk drwxr-xr-x. 7 root root 4096 Sep 1 10:19 java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64 drwxr-xr-x. 5 root root 4096 Sep 5 10:06 java-11-openjdk-11.0.8.10-2.fc32.x86_64 lrwxrwxrwx. 1 root root 34 Sep 5 10:06 java-openjdk -> /etc/alternatives/java_sdk_openjdk lrwxrwxrwx. 1 root root 21 Sep 1 10:27 jre -> /etc/alternatives/jre lrwxrwxrwx. 1 root root 27 Sep 1 10:27 jre-1.8.0 -> /etc/alternatives/jre_1.8.0 lrwxrwxrwx. 1 root root 35 Sep 1 10:27 jre-1.8.0-openjdk -> /etc/alternatives/jre_1.8.0_openjdk lrwxrwxrwx. 1 root root 50 Jul 28 05:02 jre-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64 -> java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre lrwxrwxrwx. 1 root root 24 Sep 1 10:23 jre-11 -> /etc/alternatives/jre_11 lrwxrwxrwx. 1 root root 32 Sep 1 10:23 jre-11-openjdk -> /etc/alternatives/jre_11_openjdk lrwxrwxrwx. 1 root root 39 Jul 18 19:41 jre-11-openjdk-11.0.8.10-2.fc32.x86_64 -> java-11-openjdk-11.0.8.10-2.fc32.x86_64 lrwxrwxrwx. 1 root root 29 Sep 1 10:27 jre-openjdk -> /etc/alternatives/jre_openjdk So the issue is that "/usr/lib/jvm/java-11/" does not exist on my system. Not sure what mechanism is responsible for creating that directory. Just in case: My machine was upgraded from F31 -> F32 (and had many upgrades before, not sure what the initial Fedora version was). $ rpm -qa | grep -i java | grep openjdk | sort java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64 java-1.8.0-openjdk-devel-1.8.0.265.b01-1.fc32.x86_64 java-1.8.0-openjdk-headless-1.8.0.265.b01-1.fc32.x86_64 java-11-openjdk-11.0.8.10-2.fc32.x86_64 java-11-openjdk-headless-11.0.8.10-2.fc32.x86_64 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. 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. |