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

Language Support for Java couldn't create connection #3493

Open
Jia7777777 opened this issue Feb 11, 2024 · 8 comments
Open

Language Support for Java couldn't create connection #3493

Jia7777777 opened this issue Feb 11, 2024 · 8 comments

Comments

@Jia7777777
Copy link

[provide a description of the issue]
Hello, when I connect to remote server, I always meet this problem. How do I solve it?
Screenshot 2024-02-10 173228
Screenshot 2024-02-10 152826

Environment
  • Operating System: Windows 11
  • JDK version: 17.0.9
  • Visual Studio Code version: 1.86.1
  • Java extension version: 1.27
Steps To Reproduce
  1. Open a .java file
  2. Pop-up that says the Java server cannot be started
Current Result

Java is not working

@snjeza
Copy link
Contributor

snjeza commented Feb 11, 2024

@Jia7777777 Could you click Show Logs and attach the logs here?

@Jia7777777
Copy link
Author

eclipse.buildId=unknown
java.version=17.0.10
java.vendor=Eclipse Adoptium
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: --stdio
Command-line arguments: -data /home/j/jhu32/.vscode-server/data/User/workspaceStorage/f9952818f932a77db8c9f7de284774ee/redhat.java/jdt_ws --stdio

!ENTRY org.eclipse.jdt.ls.core 1 0 2024-02-10 21:38:18.021
!MESSAGE class org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin is started

!ENTRY org.eclipse.jdt.ls.core 1 0 2024-02-10 21:38:18.348
!MESSAGE Main thread is waiting

!ENTRY org.eclipse.jdt.ls.core 1 0 2024-02-10 21:38:18.420
!MESSAGE >> initialize

!ENTRY org.eclipse.jdt.ls.core 1 0 2024-02-10 21:38:18.426
!MESSAGE Initializing Java Language Server 1.32.0.202402010329

!ENTRY org.eclipse.jdt.ls.core 1 0 2024-02-10 21:38:18.428
!MESSAGE Started org.eclipse.m2e.core 1ms

!ENTRY org.eclipse.jdt.ls.core 1 0 2024-02-10 21:38:19.297
!MESSAGE ProjectRegistryRefreshJob finished 866ms

!ENTRY org.eclipse.jdt.ls.core 1 0 2024-02-10 21:38:19.426
!MESSAGE Started org.eclipse.buildship.core 127ms

@Jia7777777
Copy link
Author

Is it because of different jdk version between mine and remote server?

@Jia7777777
Copy link
Author

I am new to vscode so i set up my jdk version via https://code.visualstudio.com/docs/java/java-tutorial. i using the coding pack for java

@Jia7777777
Copy link
Author

Is it a way that i can change my jdk to 17.0.10?

@Jia7777777
Copy link
Author

I don't know why this is invalid path when I am on server. Because this is actually the path to jdk i download
Screenshot 2024-02-11 143603
Screenshot 2024-02-11 143807

@Shinchai
Copy link

Shinchai commented Feb 18, 2024

Had similar error, logs said need elevated perms, started VS Code as admin, error gone.

@hemanth-92
Copy link

Same problem any solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants