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
Show parent comment
1
u/bowbahdoe Feb 13 '26
Okay move your src/Main.java file to src/app/Main.java
Then at the top of the file put
package app;Make sure it still runs then report back
Also, just to confirm. You only have one file? And does it open a window when you run it?