How to build an executable file for a Java 11 GUI application using Launch4J
Before we look at the how perhaps we should ask the question of why. The aim is to package up our Java application so that we can distribute it to others. We want them to be able to launch the application without having to install anything else.
Therefore, what we are looking to deliver is our Java application along with the Java Runtime Environment and any external libraries required for it to run. To do this will need a few tools:
Continue reading “Creating an executable file with Launch4J and Java 11”
Since Java 9, there is no longer a Java Runtime Environment (JRE) shipped as part of the Java Development Kit. The JDK provides a tool to allow you to create your own JRE. In this article, we will look at using this tool to create our own JRE.
Continue reading “Using JLink to build a Java 11 JRE”
This is a follow-on article for building Java desktop applications using OpenJDK11 and OpenJFX 11. See
In this article, we are, like the previous articles, going to build the whole application using the command line.
The software tools we will use in this article are:
- OpenJDK 11
- OpenJFX 11
- OpenJFX 11 modules
- Wix Toolset 3.11
See the earlier article Making a Windows MSI from a Java 11 and JavaFX 11 Desktop application for more information about these tools
What is different here is firstly the application is going to take advantage of the modular system introduced in Java 9. Secondly, we are going to build a Java Runtime Environment that includes the JavaFX modules our application requires. We will then package up the Java application with the JRE however, this will leave us with a JRE for any other Java applications providing the modules they need are included in the JRE.
Continue reading “Creating an MSI installer from a JavaFX 11 modular desktop application”
Take your Java skills to the next level. I saw a Twitter post with these words in it and it got me thinking. What is the next level?
It means different things to different people. When learning Java that could mean anything. Perhaps it is better to declare what is on offer, then people can determine if they think they need that skill or not. So my next project should be “Getting started building Java desktop applications”
As a software developer, my focus is on building Java Desktop applications for the Windows operating system. Therefore, most of the material I produce is centered around this. However, in this article, I am venturing into the world of Linux as I know there are many people who use Linux as their platform. Continue reading “Create a Linux Debian package from JavaFX 11 desktop application”
Making a Windows MSI from a Java 11 and JavaFX 11 Desktop application
With the advent of Java 9 and the introduction of 6 monthly release cycles, the Java Desktop landscape has changed considerably. If you find yourself looking to build Desktop applications using JavaFX and present them as self-contained applications, then take note. Continue reading “Making a Windows MSI from a Java 11 and JavaFX 11 Desktop application”
What is the point of writing an application if no one is going to use it? We all want our applications out there in the hands of users.
So how can we achieve this if we are building JavaFX applications for the desktop? Continue reading “Showcasing a deployable JavaFX application”
Even Java Desktop applications can use web services, and in this article, we will take a look at how to make a call to a SOAP web service and receive a response. For this simple example, we will make use of “The Naked Web Service” which was produced as an earlier article.
Continue reading “Java client calling SOAP web service”
This is a simple bit of code to monitor a directory and send a signal when something changes within that folder.
The purpose of this project is to be able to monitor one, or more, directories so that the application is notified anytime a new file is added to the directories under observation. Continue reading “Monitor folders for changes”
So-called because in this article we show how to put together all the parts of a simple web service so that when you come to use the tools out there, that make things easier and quicker, you can work out what has gone wrong and how to fix it.
Continue reading “The naked web service”