#its not
87 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @vague oyster! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Simply don't use VSC for Java, there are far better Options:
- IntelliJ
- Eclipse
but this is what im used to and what i prefer
its never had this issue in the past, and im not looking to change IDEs
https://code.visualstudio.com/docs/languages/java
Maybe you have tried this already, if so, then sorry but I can't help you more. I don't get why switchig IDEs for langs is an issue, since setting up Java + dedicated IDE is running 2 exes on Windows, but to each their own i guess^^
This error is because you created a Java project but you didn't add a JRE to the project
so VSC doesn't know where your Java installation is
i see, how can i fix that?
Can you go to the settings in VSC and search for Java home?
alternatively you can edit the settings.json
im trying, i thought it was supposed to use %JAVA_HOME% on windows though
this is the only thing i find
can you open the settings as json?
look for java.home or java.jdt.ls.java.home
Also, is there a referenced libraries thing in your project?
i dont see it
no, its just the standard maven jdk8 starter project
If you want to find the settings.json, you have to go to the VSC settings and there should be a link at the top or similar
the referenced libraries is something that should be displayed in VSC on the thing on the bottom left side
I think the view(?) should be called Java Project or similar
i see java project
ok so there's just the Maven dependencies
Can you show the pom.xml?
ideally as text, not using an image
Are there any options when right-clicking on jbg there? Or is there a plus sign next to it?
i can create new something
What is there when clicking the 3 dots above?
neither configure java runtime nor classpath works however
it is fully updated
configure Java Runtime should be the right option
What exactly happens when clicking it?
Did you just update it? What happens when clicking on the reload button?
this
i did try updating it, reloading it just flickers for a moment
What happened when trying the update button?
Did you try updating the extension in the extensions tab?
Did you try restarting VSC?
it reinstalls
yeah
and restarting
what happens when updating like that?
Is there anything about a Java home, Java runtime configuration or similar in the project settings?
i cant, it says its fully updated
there is this
setting it to java did not change any errors
Are you using a JDK or a JRE?
What's the output of where javac and javac -version?
Can you try reloading the Maven project after setting that?
i did try that
I assume it soes nothing?
does*
In your pom.xml, there is maven.compiler.source and maven.compiler.target
Both are set to 1.8
maybe try changing those to 25
or replace them with a single maven.compiler.release value set to 25
i did try, it doesnt help
When I click on configure Java runtime in theia, I am getting this
Do you have that JDK field as well?
no, when i click configure java runtime i get this
Can you try uninstalling and reinstalling that plugin?
Assuming reinstalling doesn't work:
Do you have this thing at the bottom? if so, can you click it and select "Open Logs"?
oh I didn't know you are using aarm64
Maybe you could try downloading an additional x64 JDK for VSC? I think you can still run that even if it might be slower?
yeah, https://marketplace.visualstudio.com/items?itemName=redhat.java might have some issues with ARM on Windows
Are there any general logs of VSC you could look at?
not that i can tell
maybe start VSC from cmd and check the output there?
I don't use VSC so idk
but the Java extension from Red Hat might generally not support ARM on Windows
Maybe you could try the Oracle one?
I might just use my x86 laptop instead of solving any problems
alternatively you could also try using a different IDE
What's so different in aarm64 that a VS code extension makes problems? Do they have to write parts of it in pure assembly?
That's why I wanted to see the logs. My guess is that it could be something with detecting the JDK
and JDT.LS is written in Java as well so if it failed to run that, there could be a lot of issues
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use/help ping.
Warning: abusing this will result in moderative actions taken against you.
I don't see any logs, there's nothing in the terminal but I'm not sure if thats where it would be