Blog

Automated upgrades with Unattend Upgrades

The Unattended Upgrade package is helpful for upgrading your server automatically and keeping your computer secure. In this tutorial, I show you the necessary setup to do it. To check if the package is already installed you can run the following command: Either it is already installed or it will be installed. After this step, […]

Install 3rd party library to Maven

Installing a third party library to Maven is an easy task. The maven-install-plugin provides a goal to accomplish it easily. You put the library into your local repository by using the following command: If the library was built with Maven you need the file location argument, only. See the following example:

Jersey Injection Facade

In version 2.26 Jersey started to make their codebase independent of any injection framework. This means that the user has to provide the injection framework, which should be used. The h2k injection framework is completely supported, other frameworks as CDI or guice will follow. Therefore it could be that you run into the following issue […]

Add web.xml in war by using Gradle

The web.xml file is not needed anymore to define deployment properties. It becomes optional with the opportunity to create the definitions inside the classes using the annotations introduced in Java EE 6. If you want to have it anyways in your web application and build your application with Gradle you can customize the build.gradle file. […]

How to increase the memory of a Tomcat Server

In Windows, it’s quite easy to increase the memory by using the Tomcat Monitoring Application tomcat9w. You find the application in the following directory: A small dialog will open and you need to select the Java tab in the top. To increase the memory you need to change the value in the Maximum memory pool […]

How to remove a service from Windows

A service is a handy tool to run background processes, but how to delete them if you don’t need it anymore? In Windows, you have different ways to remove it. I will show you how you can do it by using the command line tool. You need to run the command line tool as administrator […]

How to run Ant with a renamed build file in terminal

By default, Ant is looking for a file named build.xml in the current directory. If you don’t want to rename the file or the file is in another directory you can specify the file name or path by using the -buildfile option. You can also use -file or -f to achieve the same behaviour. After […]

How to ignore previously committed files in Git

Recently I started to work with the IntelliJ IDEA. As I pulled an old project I have seen that it contains Eclipse project files. My first task was to clean up my project and add the Eclipse and IntelliJ files to .gitignore. To get rid of the Eclipse files from the repository I used the […]

How to kill a process by port number

Today, I wanted to run my Tomcat server, but for some reason, the old instance was still running. The terminal returns the following message: The message is quite clear, but how to kill the server. I will show you how you can achieve this for Unix and Windows. As first you need to figure out […]

Installing Java on OSX using Homebrew

There was a time where I have installed all my applications by downloading it from the provider or a page I trust. Then I became familiar with Homebrew and decided to manage all my applications with this tool. As the first step, I need to uninstall Java, which is installed the old fashion way. How to […]

« Previous PageNext Page »