Skip to content
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

No Connection to gradle server. Try restarting the server (Gradle for Java) #1221

Closed
VWMN opened this issue May 10, 2022 · 5 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@VWMN
Copy link

VWMN commented May 10, 2022

Extension Name: Gradle for Java
Extension Version: v3.12.0
OS Version: Macos Monterey 12.3.1
VSCode version: 1.67.0 (Universal)

Screen Shot 2022-05-10 at 15 08 22
Screen Shot 2022-05-10 at 15 10 40

Output from "Gradle for Java"
[Error - 1:38:47 PM] Starting client failed
Launching server using command /Library/Java/JavaVirtualMachines/bin/java failed.

Additional context
I've tried to restart the server, my device, and reinstall vscode

@VWMN VWMN added the bug Something isn't working label May 10, 2022
@CsCherrYY
Copy link
Collaborator

The dir /Library/Java/JavaVirtualMachines/bin/java is your JDK path or not?

@CsCherrYY CsCherrYY self-assigned this May 10, 2022
@VWMN
Copy link
Author

VWMN commented May 10, 2022

The dir /Library/Java/JavaVirtualMachines/bin/java is your JDK path or not?

yes

@VWMN
Copy link
Author

VWMN commented May 10, 2022

but
Screen Shot 2022-05-10 at 15 26 54

I have Zulu-17.JDK

@CsCherrYY
Copy link
Collaborator

This page shows your given path /Library/Java/JavaVirtualMachines is not a valid JDK and it's provided by vscode-java-pack, so our tools can't use this java home to import your project. You can set java.home to another JDK or just remove java.home setting in settings.json since it has been deprecated.

@VWMN
Copy link
Author

VWMN commented May 19, 2022

thanks it work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants