redhat-developer / redhat-developer/vscode-java
Language server runtime should fail immediately if minimum version of JRE not satisfied
Open
Nobody has claimed this yet.
bug
extension-start
runtime
ux
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
launching vscode with java 8 in path I get the following:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/redhat/qute/ls/QuteServerLauncher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
should the qute (or quarkus tools) not be able to handle this as vscode-java seem to survive such startup?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with Java 8 on PATH while launching VS Code, then trace the Qute or Quarkus language-server startup path mentioned in the report. Done means an unsupported minimum JRE is detected immediately and produces a clear diagnostic instead of the raw UnsupportedClassVersionError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100