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: Java Network Launch Protocol (JNLP) enables an application to be launched on...
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: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>2.4.1</version> <executions> <execution> <phase>package</phase> <goals>...
How to fix postgres error: current transaction is aborted, commands ignored until end of transaction block
In this post, I will tell you how to fix the error that PostgreSQL throws when you try to execute an SQL-statement.
How to unzip files in java
In this post, I will show you how to unzip a .zip-file in java.
How to add dummy data to your java object
When you are unit testing, it is sometimes necessary to supplement an object with dummy data. Unfortunately, to fill a large object manually, it crawls a lot of time and work. Fortunately, there is a tool that saves us the time and work!
How to fix jasperserver 5.5 parameter bug
In Jasperserver 5.5 the community version, it is not possible to schedule a report with parameters by a bug. In this post, I will tell you how to fix this bug.
How to add a locale to Jasperserver
To add a locale to Jasperserver you need to open the applicationContext-security.xml file. This is located in the WEB-INF folder.
How to display project version in Java
Sometimes, it’s useful to display the project version in your application. That version can be found in the MANIFEST.MF file. It’s located in every JAR or WAR file in the META-INF folder.
How to change Sonar default database
Sonar uses a Derby or H2 as default database. When running Sonar, it says that these databases may only be used for evaluation. Now, in this article, I will tell you how to change the default database and how to configure Maven to use it.
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 vice-versa. To do so, you can use Google’s framework ‘gson’:
Maven dependency
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
</dependency>