I can actually do a simple installer in Bash, to install java, and set it up, like
#!/bin/bash
echo " INstalling java"
<here goes all the menu code bla bla"
sh java.sh
export lines
export bla bla
copy to browser path
echo " done",
Wich is pretty easy to just create a bash script. that installs java for you.