RequestAppendix: Cookie: oraclelicense=a
Auto accept license
echo oracle-java9-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
echo oracle-java8-installer shared/accepted-oracle-licence-v1-1 boolean true | sudo /usr/bin/debconf-set-selections
If your host architecture differs from LTSP chroot, you won't be able to install Java this way. Chrooting will make the chroot report the host's architecture to the installer, which causes it to download the wrong binary. Generally, chroots should be kept the same architecture as host, but if they must be different, one can still install Java this way if live-boot from the correct architecture media is done and chroot is entered from it.
user@machine:/usr/lib/jvm/tools$ ls -al /usr/lib/firefox-addons/plugins/
drwxr-xr-x 2 root root 4096 Jul 13 11:07 .
drwxr-xr-x 6 root root 4096 Aug 18 2012 ..