#its not

87 messages · Page 1 of 1 (latest)

vague oyster
#

Cannot find the class file for java.lang.Object. Fix the build path then try building this project

i just installed Java 25, and VS Code
I did not have anything on this PC before that
I did set path and JAVA_HOME

elder oakBOT
#

This post has been reserved for your question.

Hey @vague oyster! Please use /close or the Close Post button 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.

vague oyster
onyx pendant
vague oyster
onyx pendant
# vague oyster but this is what im used to and what i prefer its never had this issue in the pa...

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^^

Learn about Visual Studio Code editor features (code completion, debugging, snippets, linting) for Java.

subtle solstice
#

so VSC doesn't know where your Java installation is

subtle solstice
#

alternatively you can edit the settings.json

vague oyster
vague oyster
subtle solstice
#

look for java.home or java.jdt.ls.java.home

#

Also, is there a referenced libraries thing in your project?

vague oyster
#

i dont see it

vague oyster
subtle solstice
#

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

vague oyster
#

i see java project

subtle solstice
#

ok so there's just the Maven dependencies

#

Can you show the pom.xml?

#

ideally as text, not using an image

subtle solstice
subtle solstice
vague oyster
#

neither configure java runtime nor classpath works however

#

it is fully updated

subtle solstice
subtle solstice
subtle solstice
vague oyster
vague oyster
subtle solstice
#

What happened when trying the update button?

#

Did you try updating the extension in the extensions tab?

#

Did you try restarting VSC?

vague oyster
vague oyster
#

and restarting

subtle solstice
subtle solstice
# vague oyster this

Is there anything about a Java home, Java runtime configuration or similar in the project settings?

vague oyster
vague oyster
#

setting it to java did not change any errors

subtle solstice
#

Are you using a JDK or a JRE?

#

What's the output of where javac and javac -version?

subtle solstice
subtle solstice
#

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

vague oyster
subtle solstice
#

Do you have that JDK field as well?

vague oyster
subtle solstice
#

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"?

vague oyster
#

i do not have this

#

im thinking it might not work with aarm64

subtle solstice
#

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?

#

Are there any general logs of VSC you could look at?

vague oyster
subtle solstice
#

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?

vague oyster
#

I might just use my x86 laptop instead of solving any problems

subtle solstice
#

alternatively you could also try using a different IDE

hybrid delta
#

What's so different in aarm64 that a VS code extension makes problems? Do they have to write parts of it in pure assembly?

subtle solstice
#

and JDT.LS is written in Java as well so if it failed to run that, there could be a lot of issues

elder oakBOT
#

💤 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.

vague oyster
subtle solstice
#

Did you open a terminal and start VSC in that terminal?

#

I think there are logs somewhere but idk where