-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trying to follow the main guide, but stuck at : Application "org.eclipse.jdt.ls.core.id1" could not be found in the registry #1520
Comments
@survivant I can't reproduce the issue.
|
I found the issue. I had JDK8 in my path . The problem is gone using jdk11. |
@survivant @snjeza |
|
Java LS requires JDK11 to run. Your project can use JDK >= 1.5. See https://github.com/redhat-developer/vscode-java/wiki/JDK-Requirements |
I have tried the same but with jdk 17.0.1 and had the same problem:
I have changed the order of the arguments as #1934 suggests but it still fails. Edit: Seems that powershell needs to receive all arguments in quotes (except -jar file) to work. After running it like that the command still not work but it writes the following log:
|
I got same error on Windows 10, but works well on Linux. Wired. |
i've cleaned workspace/data dir, and jdk is v11 already, but why still reported such err?
|
@Shane-XB-Qian jdt.ls now requires Java 17 to run (you can still compile Java 1.5...18 projects) |
Oh My ............... ok. was the ok IF put a |
@Shane-XB-Qian feel free to open a PR |
BTW, there's now a script to launch jdt.ls, that performs the requirement checks: https://github.com/eclipse/eclipse.jdt.ls/tree/master/org.eclipse.jdt.ls.product/scripts |
unluckly, I have no idea about those requirement with jdtls each version, |
I'm looking for a sample / demo that call eclipse.jdt.ls from command line or better from maven. I want to to be able to apply the command "Organize imports" for my source code from the command line.
I cloned eclipse-jdt-ls repository and did this :
./mvnw clean verify -DskipTests=true -Pserver-distro
I unpack the .gz file and launched it with this command line
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044 -Declipse.application=org.eclipse.jdt.core.JavaIndexer -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Xmx1G -jar ./plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar -configuration ./config_win -data ./path/to/data --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED
I had to change "-Declipse.application=org.eclipse.jdt.ls.core.id1" for something else because the application id1 is not found.
but I don't know what to do from that.
The text was updated successfully, but these errors were encountered: