I'm trying to use a wildfly 10.0.0 final server with java 1.8 in vscode. What happens is that I can't use the server because the red hat extension that is used to add the server only runs with java 11 onwards. But if I use a more current java, my application will stop working. Has anyone used wildfly in vscode with java 1.8?
I already tried to change the java version in the "settings.jason" file, but when I try to upload the wildfly, I get the following error - "Unable to start the server: Extension backend error - server can not be started: server wildfly 10. x is not compatible with discovered java version 11.0.16. this server requires a java version between 1.8 and 1.8 inclusive. you may change a server's launch vm by setting the 'vm.install.path' property in a server's rsp configuration file."
you can try follow this steps:
Search by
settings.json(configuration file of user vscode):Add this line bellow, indicating the path to the jdk11 used by Redhat Server Connector Plugin :
Your server's configuration file on the right click on the Wildfly Server (named by you), and bellow Red Hat Server Connector, (when the server is stopped)
, its have to be similar to the json below:
I hope this can help you.