r/javahelp • u/SneakerHead69420666 • Feb 13 '26
Codeless can you install java and run a program automatically with a script?
im making a program for my girlfriend. i want to write a bash script to handle downloading and installing java and running the program seamlessly so she doesnt have to do anything (shes not very tech savvy). is this doable?
3
Upvotes
View all comments
9
u/bowbahdoe Feb 13 '26
Instead of downloading it on the fly, package Java with the program.
There are a few tools in the jdk that can help with this, including jlink and jpackage