Language Support for Java couldn't create connection
[provide a description of the issue]
Hello, when I connect to remote server, I always meet this problem. How do I solve it?
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
- Open a .java file
- Pop-up that says the Java server cannot be started
Current Result
Java is not working
@Jia7777777 Could you click Show Logs and attach the logs here?
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
Is it because of different jdk version between mine and remote server?
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
Is it a way that i can change my jdk to 17.0.10?
I don't know why this is invalid path when I am on server. Because this is actually the path to jdk i download
Had similar error, logs said need elevated perms, started VS Code as admin, error gone.
Same problem any solution