Running JavaFX applications on Redhat 5 -


from previous question, know javafx not supported in redhat 5.8 meaning, when have java 8 (jdk1.8.0_05) installed on linux, jar file created in win7 can't executed via java -jar helloworld.jar. mean there no way run javafx jars on machine?

the problem running javafx applications on rhel5 version of glib comes os not new enough. trick, then, provide newer version of library , of other libraries depend on jre. next hurdle rhel5 shared library loader won't load libraries. have use compatible loader. jvm has path loader hard-coded in executable! need separate jvm custom loader path patched in. roughly, steps working are...

  1. unpack following packages rhel6:

    • glib2
    • libffi
    • glibc
    • glibc-common
    • zlib
    • gtk2
    • pango
    • cairo
    • pixman
  2. put of shared libraries packages in directory on rhel5 system. let's call /your-alien-rhel6-libs-path.

  3. unpack copy of jre to, say, /your-alien-jvm-path.

  4. use patchelf point jvm executable new loader.

    • ./usr/bin/patchelf --set-interpreter /your-alien-rhel6-libs-path/lib/amd64/ld-linux-x86-64.so.2 /your-alien-jvm-path/jre1.8.0_25/bin/java
  5. run application after setting ld_library_path=/your-alien-rhel6-libs-path/lib/amd64:/your-alien-rhel6-libs-path/lib/amd64/jli

although not pretty, have run javafx applications on rhel5 using method. having said that, highly recommend upgrading os if remotely feasible.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -