You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, does anyone know if there is a way to start the Java Language Server from the command Line? I have a workspace in my container with a Java class, and I would have the language server up and running before the user opens the class in an editor from the UI. This is for a Cloud-based application.
I have tried using the command: /opt/mycompany/jvm/jvm/bin/java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.fs=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Djava.import.generatesMetadataFilesAtProjectRoot=false -DDetectVMInstallationsJob.disabled=true -Dfile.encoding=utf8 -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable -javaagent:/home/sag/node_modules/@jse/java-service-editor-app/plugins/redhat.java/extension/lombok/lombok-1.18.28.jar -jar /home/sag/node_modules/@jse/java-service-editor-app/plugins/redhat.java/extension/server/plugins/org.eclipse.equinox.launcher_1.6.500.v20230717-2134.jar -configuration /opt/softwareag/.theia/globalStorage/redhat.java/1.23.2023092204/config_ss_linux -data /opt/softwareag/.theia/workspace-storage/9c491c7c323deca0a9a4af50687fc724/redhat.java/ss_ws
but I get an error: java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, does anyone know if there is a way to start the Java Language Server from the command Line? I have a workspace in my container with a Java class, and I would have the language server up and running before the user opens the class in an editor from the UI. This is for a Cloud-based application.
I have tried using the command:
/opt/mycompany/jvm/jvm/bin/java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.fs=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Djava.import.generatesMetadataFilesAtProjectRoot=false -DDetectVMInstallationsJob.disabled=true -Dfile.encoding=utf8 -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable -javaagent:/home/sag/node_modules/@jse/java-service-editor-app/plugins/redhat.java/extension/lombok/lombok-1.18.28.jar -jar /home/sag/node_modules/@jse/java-service-editor-app/plugins/redhat.java/extension/server/plugins/org.eclipse.equinox.launcher_1.6.500.v20230717-2134.jar -configuration /opt/softwareag/.theia/globalStorage/redhat.java/1.23.2023092204/config_ss_linux -data /opt/softwareag/.theia/workspace-storage/9c491c7c323deca0a9a4af50687fc724/redhat.java/ss_ws
but I get an error:
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
Thank you
Beta Was this translation helpful? Give feedback.
All reactions