This tutorial covers WildFly application server installation and configuration as a Service on Windows.
First off, you need to download a JDK which is supported by WildFly. If you are not sure which one to download, check this article: Choosing the right JDK for WildFly and JBoss EAP 7 . Now Install the JDK : https://www.oracle.com/technetwork/java/javase/downloads/index.html
Once you have installed WildFly, set the JAVA_HOME as follows:
- Locate your Java installation directory.
- Click the Environment Variables button.
- Under System Variables, click New.
- In the Variable Name field, enter “JAVA_HOME”
- In the Variable Value field, enter your JDK or JRE installation path . …
- Click OK and Apply Changes as prompted.
Install WildFly on Windows
Navigate to https://wildfly.org/downloads/ and download the zip file with the latest stable version of WildFly application server. Unzip the archive and move to the “bin” folder.
Move to the folder “bin” which is under WildFly installation and start WildFly with:
The application server will start as you can see from the Console:
15:47:25,343 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:8443 15:47:25,432 INFO [org.jboss.ws.common.management] (MSC service thread 1-3) JBWS022052: Starting JBossWS 5.3.0.Final (Apache CXF 3.3.3) 15:47:25,551 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server 15:47:25,553 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management 15:47:25,553 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990 15:47:25,553 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 18.0.0.Final (WildFly Core 10.0.0.Final) started in 3120ms - Started 315 of 577 services (369 services are lazy, passive or on-demand)
You can check that it’s running, by reaching the home page at localhost:8080
Installing WildFly as a service.
In order to install WildFly as service on Windows:
- Navigate to the dolder “JBOSS_HOME\docs\contrib\scripts\”.
- Copy the service directory to JBOSS_HOME\bin
- Open an Admin Shell and navigate into the service folder
- Run “service.bat install“
Next open windows Services, you should see Wildfly installed, you can now start it from here and set it to automatic: