-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
[vscode devcontainer]A fatal error has been detected by the Java Runtime Environment #1108
Comments
Might be related to #1094 as well. |
@zanqi It looks like that you have both Java 21.0.3 installed and 17.0.11. Is it the case that VS Code starts with 21 but you are targeting 17 for that project? |
@karianna I don't have jdk 17 installed, but the redhat java extension for vscode comes with an embedded JDK 17. |
@testforstephen could you help take a look? |
Just to clarify that the embedded JDK is for the language service internal use only. User still needs to install the JDK corresponding to their project needs. |
Hey @zanqi, I followed your reproducing steps and Java extension is started well using the embedded JRE 17. See the screenshot below. The embedded JRE of Java extension is from JustJ (which is based on Temurin), I'm not familiar with the specific JDK errors. Can you try to change the user setting |
Hi, @testforstephen, the setting key |
Thanks for the instruction. I changed the Remote settings accordingly. Unfortunately, the problem still appears. Only this time, the error is reported by JDK 21 My mac info: The error:
|
I noticed that your image is for AMD64 (x64), but your machine uses Apple Silicon. Was this intentional? Have you tried using the ARM64 image? |
Yes, some of the packages I need are compiled for i386. It only works on AMD64 but not ARM64. I tried switching the image to ARM64. The Java language server indeed works. |
So this is a platform compatibility issue. let's narrow it down a bit. Can you manually run Java command on the devcontainer? for example, |
|
@zanqi Do you know from which version of vscode-java the issue starts occurring? @rgrunber The user is running dev container with Ubuntu x64 image on Apple M3 Pro (arm64), and Java extension fails to start. Any thoughts on this issue? Edited: Used to work a month ago, so the issue likely started with vscode-java version 1.31.0. |
I don't know the last working version. |
We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable. |
@zanqi Can you try again with the latest VS Code and Arm based JDK? |
We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable. |
Please provide a brief summary of the bug
I use vscode devcontainer on a java project. Got the following error for the past month and couldn't get IntelliSense for java. Log file attached.
hs_err_pid939.log
Did you test with the latest update version?
Please provide steps to reproduce where possible
Expected Results
no error
Actual Results
as reported
What Java Version are you using?
openjdk 21.0.3 2024-04-16 LTS OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode, sharing)
What is your operating system and platform?
Ubuntu 24.04 LTS on amd64
How did you install Java?
vscode devcontainer, select java in select container features
Did it work before?
Did you test with other Java versions?
Relevant log output
The text was updated successfully, but these errors were encountered: