Home Man
Today's Posts

Script to install jdk

Shell Programming and Scripting

Kindly Note - This is a Single User Post by Forum Member primp Regarding:
Script to install jdk.
Please Follow The Primary Link Above to View the Full Discussion.

Old 05-09-2008
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.