#How can I get JPackage to display an error message if java is out of date?

1 messages ยท Page 1 of 1 (latest)

north boltBOT
#

<@&987246399047479336> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question ๐Ÿค–. Maybe it helps! In any case, a human is on the way ๐Ÿ‘. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
JPackage preps my app for release. I run it on a system with java below my minimum requirement. It fails silently. I want it to display a message to the user along the lines of "Oops! You need at least java N, here's a link to get the latest." I don't f

You can use the "--runtime-image" option in JPackage to specify the minimum version of Java required for your application. If the user's Java version is below this requirement, JPackage will display an error message. Simply add "--runtime-image <path_to_java_runtime_image>" to your JPackage command.

Useful links:

arctic lion
#

that's silly. I can't know the runtime image location for every user.

lost tapir
compact canopy
#

and are you talking about a build process that you expect a user to be running?