According to the LibreOffice Portable support page (https://portableapps.com/support/libreoffice_portable#java), the easiest way to get Java on your portable device is to install Java locally and then use Java Portablizer. Wouldn't installing jPortable (https://portableapps.com/apps/utilities/java_portable) be the easiest solution?