vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Language Support for Java couldn't create connection

Open Jia7777777 opened this issue 1 year ago • 9 comments

[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

Jia7777777 avatar Feb 11 '24 04:02 Jia7777777

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

snjeza avatar Feb 11 '24 05:02 snjeza

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 avatar Feb 11 '24 05:02 Jia7777777

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

Jia7777777 avatar Feb 11 '24 05:02 Jia7777777

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 avatar Feb 11 '24 05:02 Jia7777777

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

Jia7777777 avatar Feb 11 '24 05:02 Jia7777777

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

Jia7777777 avatar Feb 11 '24 22:02 Jia7777777

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

Shinchai avatar Feb 18 '24 16:02 Shinchai

Same problem any solution

hemanth-92 avatar Mar 06 '24 12:03 hemanth-92