Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Portable JRE on Linux - possible?

I am making a remastered distribution that was at first packed with Sun Java, however I decided I would like Java to run from a folder on the hard drive with my application instead. I see there's a portable Java for Windows - how can I do this with Linux? I haven't tried simply putting the whole folder in there but that seems like an ugly hack, and I'm not sure if there are other files in the Java install that need to be put in system directories.

like image 857
V_H Avatar asked Mar 17 '26 21:03

V_H


1 Answers

On Linux you download jre-6u21-linux-i586.bin from oracle site, you exec it, and you get all jre in one directory.

You can change this directory name, copy it an another Linux PC, tar it and untar it elsewhere, and so on. Then put the subdir bin on the PATH, that's all.

like image 160
Istao Avatar answered Mar 20 '26 10:03

Istao



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!