This task is not difficult, you would normally install jdk on linux by doing something like:
It'll prompt for you to accept the EULA which just requires "y" along with accepting other defaults.
I would go through the manual process and figure out if you want to use the defaults, come up with an answer file which is just the answer to each question with a newline separating.
Then have a script just do the following:
./jdk-installer-bin < answer_file
This will provide you with an auto-answer to the installer, I mean you would probably want to check if there's a version that exists/etc. but that's the basic script if you wanted an automated/silent installer.
But, I have one more question though,the jdk file I am installing has a 'More' command inside it just before the agreement instructions, that way they are making sure that everyone reads the entire agreement.
is there anyway that i can avoid it. I tried to manipulate the file by removing the "more" command from the script. But ,when I reexecute it would say file has been corrupted.
Last time I checked, it's a general user agreement, once you page down it'll ask if you want to accept. If you pass in "y\n" it should page through that portion. I haven't done an installation lately, but I would suggest looking at passing in some return keys or something that would force the page down.
Here's a tips I found trying to do the same as you :
1. Create an answers.txt file with the word y inside
2. Launch fhe following command (assuming you want to install jdk-xx.bin)
./jdk-xx.bin < answers.txt &>/dev/null
The install goes on slient.
Could you tell me if it works also for you ? (Just to be sure that this is not limited to my linux version).
Note : if you want to check if something went wrong you can echo $? (result of the install)
echo $? => 0 (ok)
echo $? => 1 (problem)