jhipster / jhipster-ide

An IDE for the JHipster Domain Language
https://jhipster.github.io/jhipster-ide
127 stars 37 forks source link

Unable to install jHipster IDE #386

Closed nvg closed 3 years ago

nvg commented 3 years ago

Describe the bug When trying to install JHipster IDE the following error occurs:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Artifact not found: osgi.bundle,com.google.inject,3.0.0.v201605172100.
Artifact not found: osgi.bundle,org.apache.commons.cli,1.4.0.v20200417-1444.
Artifact not found: osgi.bundle,org.eclipse.emf.mwe.core,1.6.1.v20210218-2134.
Artifact not found: osgi.bundle,org.eclipse.emf.mwe.utils,1.6.1.v20210218-2134.
Artifact not found: osgi.bundle,org.eclipse.emf.mwe2.lib,2.12.1.v20210218-2134.
Artifact not found: osgi.bundle,org.eclipse.emf.mwe2.runtime,2.12.1.v20210218-2134.

To Reproduce Steps to reproduce the behavior:

  1. Download the latest Eclipse
  2. Attempt to install jHipster from the marketplace
  3. Observe the error

Expected behavior Installation completes successfully

Screenshots image

Desktop (please complete the following information):

nvg commented 3 years ago

Thanks for the headsup! What would be the best scenario to get it up and running? I tried at least 5 different versions of Eclipse and Java 11/14/17 - can't get it running locally :(... Any help is appreciated.

colameo commented 3 years ago

The only way to get rid of this issue is to use version 2021-06 (4.20.0) of eclipse. I will migrate the underlying stuff when it's stable enough and publish a new release (2.4.1).

nvg commented 3 years ago

Thank you so much @colameo 🙇! Confirm that jH IDE worked with the eclipse-dsl-2021-06-R-win32-x86_64. 4.20 Java EE distro fails the install with the following error though:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Artifact not found: osgi.bundle,com.google.inject,3.0.0.v201605172100.
Artifact not found: osgi.bundle,org.apache.commons.cli,1.4.0.v20200417-1444.
Artifact not found: osgi.bundle,org.eclipse.emf.mwe.core,1.6.1.v20210218-2134.
Artifact not found: osgi.bundle,org.eclipse.emf.mwe.utils,1.6.1.v20210218-2134.
Artifact not found: osgi.bundle,org.eclipse.emf.mwe2.lib,2.12.1.v20210218-2134.
Artifact not found: osgi.bundle,org.eclipse.emf.mwe2.runtime,2.12.1.v20210218-2134.
colameo commented 3 years ago

...hm, sure u tried with the jee 4.20 version? i've just tried with a fresh downloaded eclipse and it works for me (see screenshot below).

anyways, I personally recommend to use the java distro (Eclipse IDE for Java Developers) and install separately exactly the plugins u need. it's more efficient and you do not get all sort of features/settings u may don't need at all.

image

nvg commented 3 years ago

Got it, thank you once again for your help! I get install error on JDK 17 with 4.20

image

image

The error doesn't occur when downgrading to JDK 11

nvg commented 3 years ago

Confirm install error occurs with JDK 16 as well.

colameo commented 3 years ago

please follow the official installation instructions from jhipster (https://www.jhipster.tech/installation).

any deviations from that is not supported (at least for the JH IDE project):

image

colameo commented 3 years ago

...another important point, eclipse ships a bundled jre (justj). I recommend not using it (had strange issues with it) - install a separate clean jdk (preferably adoptopenjdk).

colameo commented 3 years ago

...i was just curious to check if it would work with jdk 17 on eclipse jee 4.20 and as you can see from the screenshot below no problems at all:

image

nvg commented 3 years ago

Thank you very much. I was wondering where that Java version comes from 😄

colameo commented 3 years ago

i used the amazon corretto openjdk edition, but you can also install the (official) oracle version, it works as well:

however, the jhipster version to support java 17 is still a DRAFT release ...

image