vbtricks
June 21st, 2008, 09:17 AM
Salut,
in order to get my Java application running on any Linux pc without having to install the JRE, I'm trying to integrate the JRE into the USB-stick.
I therefore downloaded the self-extracting file from java.com and extracted it. The first try starting it directly using
cd /path/to/java
./java -jar /some/other/path/app.jar
resulted in an error message
./java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
So I added the direct path of the libjli.so to LD_LIBRARY_PATH and tried again. So I got another error message
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
As this error message looks different to the first one, I doubted that adding the direct path of libjava.so to LD_LIBRARY_PATH would work and trying to confirmed by suspicion.
Did any of you succeed getting the JRE to run without install, and if how?
Thanks in advance,
Stefan
in order to get my Java application running on any Linux pc without having to install the JRE, I'm trying to integrate the JRE into the USB-stick.
I therefore downloaded the self-extracting file from java.com and extracted it. The first try starting it directly using
cd /path/to/java
./java -jar /some/other/path/app.jar
resulted in an error message
./java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
So I added the direct path of the libjli.so to LD_LIBRARY_PATH and tried again. So I got another error message
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
As this error message looks different to the first one, I doubted that adding the direct path of libjava.so to LD_LIBRARY_PATH would work and trying to confirmed by suspicion.
Did any of you succeed getting the JRE to run without install, and if how?
Thanks in advance,
Stefan