Posting this short note to my blog in the hopes it may help someone else, as I had a hard time tracking this info down.
Debian provides a package (sun-java6-jdk) for installing the JDK, but when you have a situation where you need to do an unattended installation (aka "silent install") of the JDK you are stuck, because the install insists on making you interactively accept Sun's licensing agreement. Passing the -y option to apt-get has no effect. I was able to find a link on Sun's site for doing
silent installs on Windows, but nothing for Linux.
Fortunately, I eventually tracked down, all you have to do is the following before you run your apt-get install command:
echo sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true | debconf-set-selectionsThis indicates to the installer hooks that you have already accepted the license agreement, and doesn't give you the annoying EULA dialog.
--
Posted By eric to
ericasberry.com at 10/30/2009 04:38:00 PM