Skip to content

vm.install.path does not seem to be recognized #589

@pF-luis

Description

@pF-luis

Server Connector v0.26.12
Runtime Server Protocol UI v0.24.8
VS Code 1.79.2 (Linux)

Running within amazon corretto java 17 dev container. Everything seems to be working fine. I need Java 17 to use the java language support extension but then my current jboss cannot run on java 17 so I installed java 8 in parallel.

Now I wanted to point the RSP to use the java 8 installation on my jboss server, so I've set the vm.install.path as suggested on other issues and on the error hint within vscode itself.

My rsp configuration looks like this:

{
  "args.override.boolean": "false",
  "args.program.override.string": "-mp \"/workspaces/runtimes/pboss/modules\" org.jboss.as.standalone -b localhost --server-config=standalone.xml",
  "args.vm.override.string": "\"-Dprogram.name=rsp:JBoss EAP 7.4\" -server -Xms1303m -Xmx1303m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true \"-Dorg.jboss.boot.log.file=/workspaces/runtimes/pboss/standalone/log/boot.log\" \"-Dlogging.configuration=file:/workspaces/runtimes/pboss/standalone/configuration/logging.properties\" \"-Djboss.home.dir=/workspaces/runtimes/pboss\" -Dorg.jboss.logmanager.nocolor=true  --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED --add-modules=java.se -Djboss.http.port=\"8080\"",
  "id": "JBoss EAP 7.4",
  "id-set": "true",
  "jboss.server.host": "localhost",
  "jboss.server.port": "8080",
  "org.jboss.tools.rsp.server.typeId": "org.jboss.ide.eclipse.as.eap.74",
  "server.autopublish.enabled": "true",
  "server.autopublish.inactivity.limit": "1000",
  "server.home.dir": "/workspaces/runtimes/pboss",
  "server.timeout.shutdown": "120000",
  "server.timeout.startup": "120000",
  "vm.install.path": "/usr/lib/jvm/java-8-amazon-corretto/",
  "wildfly.publish.restart.pattern": "\\.class$|\\.jar$",
  "wildfly.server.config.file": "standalone.xml",
  "wildfly.server.deploy.directory": "",
  "deployables": {
  [...]
  }
}

The error message states the following

Unable to start the server:  Extension backend error - server can not be started: server jboss eap 7.4 is not compatible with discovered java version 17.0.6. this server requires a java version between 1.8 and 15 inclusive. you may change a server's launch vm by setting the 'vm.install.path' property in a server's rsp configuration file.

Not sure where I am wrong, seems to be I've set everything up properly.

Any hints would be appreciated, Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions