Call for LSP Example using remote Eclipse lsp Server

Does anyone know of a good example of an LSP plugin that uses the built-in LSP API in IntelliJ?

I am writing a plugin for the Simula language using my Eclipse lsp server: SimulaLspServer.jar
I want to start my SimulaLspServer.jar directly from a Java-based IntelliJ plugin without any Node.js/JS wrappers.

My server is stored in src/main/resources/server/SimulaLspServer.jar
I extract it to a temp file before generating the command line.

commandLine: java [-jar, C:\Users\omyhr\AppData\Local\Temp\SimulaLspServer574245735744930197.jar, --stdio]

Byt nothing happens, I got:

WARN - #c.i.p.l.i.LspClientImpl - SimulaLspClientDescriptor@untitled(ShutdownUnexpectedly;0): Failed to start LSP server
java.lang.RuntimeException: 'initialized' response not received from the server in 100 seconds
at com.intellij.platform.lsp.impl.connector.Lsp4jServerConnector.initializeServer(Lsp4jServerConnector.kt:119)
at com.intellij.platform.lsp.impl.connector.Lsp4jServerConnector.connect$intellij_platform_lsp_impl(Lsp4jServerConnector.kt:93)
at com.intellij.platform.lsp.impl.LspClientImpl.start$lambda$0(LspClientImpl.kt:238)
at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:378)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
at com.intellij.util.concurrency.ContextCallable.lambda$call$2(ContextCallable.java:86)
at com.intellij.concurrency.ThreadContext.installThreadContext(threadContext.kt:307)
at com.intellij.util.concurrency.ContextCallable.lambda$call$1(ContextCallable.java:83)

I had forgotten to generate the JAR file with all libraries included.

Just saying, that it’s really nice you came back and posted the solution. This is great for future visitors! Thanks a lot.