Add built-in Java support

  • Adding jre to Generic project is simple as writing this post

    It´s only for Generic systems. You need the version of java for ARM processors, but I don´t know if its working on the Pi.

    Maybe vpeter has a solution for you.

  • yes, didn't remeber that. "Java as addon was already done (for Generic only)."

    LibreELEC (Leia) on Raspberry Pi 4B

  • It´s only for Generic systems. You need the version of java for ARM processors, but I don´t know if its working on the Pi.

    Maybe vpeter has a solution for you.

    Sorry but vpeter doesn't have any RPi. Which means I'm not looking how to run java there :huh:


    Support my work with small (or big) Paypal donation


    Amlogic devices works better with CoreELEC

    Blu-ray Disc Java menus support - forum thread, Github

    my lamp addon (unofficial/community with limited support)
    my touchscreen support and instructions by Grruhn (now touchscreen addon exists in repository)


  • Sorry but vpeter doesn't have any RPi. Which means I'm not looking how to run java there :huh:

    Oracle is offering a special Java ARM package on their webpage called "Linux ARM 32 Hard Float ABI". The 64 bit version is also there. Is there any chance to implement this in an add-on package for LIBREELEC on RPi? I am not a programmer but I can offer my support for testing of alpha / beta versions.

  • Until someone tries we will not know :)


    But as I wrote addon also needs some shared libs which was copid from Ubuntu for Generic. But for RPi it should be copied from maybe Raspbian or ideally build on LibreELEC.


    Support my work with small (or big) Paypal donation


    Amlogic devices works better with CoreELEC

    Blu-ray Disc Java menus support - forum thread, Github

    my lamp addon (unofficial/community with limited support)
    my touchscreen support and instructions by Grruhn (now touchscreen addon exists in repository)


  • I tried to install it on rpi3. I compiled Libbluray from scratch on the raspberry pi in respbian. And I also copied the libraries from respbian. Installed it on libreelec as an add-on. But when I try to play a file with disc menu I got a spinning wheel.


    Edit: For java I took the jdk-8u161-linux-arm32-vfp-hflt.tar.gz


    The debug los says:


  • You are missing library libXext.so.6 because of

    Code
    1. 19:45:09.008 T:1614996352 DEBUG: CDVDInputStreamBluray::Logger - PrintStream.java:java.io.PrintStream.println:823: java.lang.UnsatisfiedLinkError: /storage/.kodi/addons/java/jre23/lib/arm/libawt_xawt.so: libXext.so.6: cannot open shared object file: No such file or directory


    Support my work with small (or big) Paypal donation


    Amlogic devices works better with CoreELEC

    Blu-ray Disc Java menus support - forum thread, Github

    my lamp addon (unofficial/community with limited support)
    my touchscreen support and instructions by Grruhn (now touchscreen addon exists in repository)


  • vpeter thanks for your help :)


    Bluray Menus are working on my Raspberry Pi 3. Tested with Milhouse Build 0407.

    I uploaded the package on my private server, hope thats ok.


    Code
    1. wget https://juka-blog.de/wp-content/uploads/2018/04/bluray-menu-rpi2.tar.gz
    2. tar xzf bluray-menu-rpi2.tar.gz -C /
    3. rm bluray-menu-rpi2.tar.gz
  • Bluray Menus are working on my Raspberry Pi 3

    Great.


    Tell me something: From what I see you copied only jre folder from jdk-8u161-linux-arm32-vfp-hflt.tar.gz? Correct?


    Support my work with small (or big) Paypal donation


    Amlogic devices works better with CoreELEC

    Blu-ray Disc Java menus support - forum thread, Github

    my lamp addon (unofficial/community with limited support)
    my touchscreen support and instructions by Grruhn (now touchscreen addon exists in repository)


  • Could the addon also be made for Amlogic s905?

    Don't have such device which means it is the same story as with RPi: Maybe someone will investigate. But I'm sure it could be done.


    Maybe you could try above RPi2 version.


    Support my work with small (or big) Paypal donation


    Amlogic devices works better with CoreELEC

    Blu-ray Disc Java menus support - forum thread, Github

    my lamp addon (unofficial/community with limited support)
    my touchscreen support and instructions by Grruhn (now touchscreen addon exists in repository)


  • I copied the JRE from the dk-8u161-linux-arm32-vfp-hflt.tar.gz and renamed it to JRE1.8.0_161. Create a symlink from JRE to JRE1.8.0_161.

    Also I recompiled the Libbluray.jar on respbian. But I think that is not necessary. Last I copied the the libs inside the lib folder. Also from raspbian os.


    I hope its possible to integrate it in the final images of libreelec 9.