#Vscode Java Extension Errors But Gradle Extension Works Well

46 messages · Page 1 of 1 (latest)

reef zodiac
#

I want to read the spring framework source code and am ready to build up the environment in vscode. However, I confronted with the configuration errors. Why the vscode cann't resolve the class in gradle repo?

bleak shoalBOT
#

This post has been reserved for your question.

Hey @reef zodiac! 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.

glossy horizon
#

How did you import the project into VSC?

reef zodiac
glossy horizon
#

I realized that but how exactly did you do it?

#

Does it show a Java build window?

reef zodiac
#

vscode gradle extension works well

glossy horizon
#

Is there something like that on the bottom?

reef zodiac
glossy horizon
reef zodiac
#

Yeah! But I need to show it tomorrow because it is on my school's computer.

glossy horizon
#

well I can't tell you without you showing me these things

#

but it's fine at any point in time

reef zodiac
bleak shoalBOT
#

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

reef zodiac
#

The Java extension reports:

#

The gradle extension works well:

#

And my user setting.json is following:

glossy horizon
glossy horizon
reef zodiac
#

These actions happen when I start the vscode :

glossy horizon
#

What's shown in whatever pops up?

#

What Java version are you using?

reef zodiac
glossy horizon
#

Can you build it from the CLI?

reef zodiac
glossy horizon
# reef zodiac

I guess there is more stuff being shown there afterwards?

reef zodiac
glossy horizon
#

Is there anything more shown in the gradle build output if you wait?

glossy horizon
#

or maybe even a JRE

reef zodiac
glossy horizon
#

you might want to try setting set Gradle JVM to your Java 23 JDK explicitly

#

or JDK 21 should work as well

glossy horizon
reef zodiac
glossy horizon
#

Does it work now after the build completed?

reef zodiac
bleak shoalBOT
reef zodiac