WSO2 Carbon Server NT Service not starting

WSO2 Carbon is a free Mashup server and the latest edition is 2.1.0.
 
  • Download and unzip the server to a directory of your choice. I just unzipped it to D: which created a folder called D:wso2ms-2.1.0. This becomes CARBON_HOME.
  • Export your JAVA_HOME environment variable. For me this was under C:/PROGRA~1/Java/JDK16~1.0_2. Please Note: I have provided the JAVA_HOME path in the 8.3 format.
  • Run /bin/install.bat. This will create a new NT service called WSO2 Carbon in the windows services registry.
  • Go to Services and try starting the server. You will get an error.
  • To resolve this error, open /repository/conf/wrapper.conf and change the first line

wrapper.java.command=%JAVA_HOME%/bin/java
to
wrapper.java.command=C:/PROGRA~1/Java/JDK16~1.0_2/bin/java

Now the service will start successfully. Happy mashing…