Enabling Colorized Console on Windows
The default Karaf installation does not produce colorized console output on Windows like it does on Unix based systems. To enable it, you must install LGPL licensed library JNA. This can be done using a few simple commands in the Karaf console:
You first need to install the JNA library:
karaf@root> osgi:install wrap:mvn:http://download.java.net/maven/2!net.java.dev.jna/jna/3.1.0
Next you need either restart karaf or you run the following Karaf commands to refresh the Karaf Console:
karaf@root> osgi:list | grep "Apache Karaf :: Shell Console"
Take note of the ID of the bundle, in my case it was 14 and then run:
osgi:refresh 14
TODO: refactor that using a nicer script to find the correct bundle