Laurent Hinoul

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - John F. Woods

Category: Open Source

How to use a JNLP file

This weekend, someone asked me for help with a specific file. He has an Audi and wanted to upgrade his GPS maps. But all he has was an 8 KB downloader file with a JNLP extension. When opening the file, he gets an error that says that the extension is not recognized. First, I’ll give you Oracles explanation of JNLP:…

How to create a vertx fat-jar with maven

If you use Vertx, It could be helpful to create a jar or war where Vertx is included. If you use maven. You can add the following code in your pom.xml:

If you integrated Spring, you need to add extra transformers. You can use the following code in your pom.xml for that:

Don’t forget to change ‘com.laurenthinoul….ApplicationMainClass’ to…

How to use json with java

Is it possible to use json in combination with java? The answer is yes! You can easily parse json objects to java objects and and vice-versa. To do so, you can use Google’s framework ‘gson’: http://code.google.com/p/google-gson/ Maven dependency