The app should handle the port number and display a user-friendly error message indicating the port is invalid or out of range.
There’s nothing worse than installing your favorite Java-based application — such as Minecraft, Maven, Jenkins or Apache Pig — only to run into a JAVA_HOME is ...