Try the "Java Web Start" method (configured when configuring the slave). It will use the Java from the web-browser that starts it.
Obviously, this is a manual start and requires a UI (Ubuntu?)