fix for #2349, use embedded Java with Linux