Add built-in Java support

  • Wow. How did you do it, only install JRE? Can you wirte a small instruction?

    jre1.7.0_04 + libbluray-j2se-1.0.1.jar + few libraries from Ubuntu 16.04


    Tested with Milhouse's build #0313, 14-Mar-2018

    LibreELEC-Generic.x86_64-9.0-Milhouse-20180314023456-#0313-g9b47b64.tar


    instructions: unpack addon in ssh console

    Code
    1. wget http://vpeter.libreelec.tv/BD-J/java-br-menu-Generic.x86_64.tgz
    2. tar xzf java-br-menu-Generic.x86_64.tgz -C /
    3. rm java-br-menu-Generic.x86_64.tgz


    Note to myself: this will need new libbluray*.jar on libbluray bump.


    Libraries from Ubuntu could be build on le but they has to changed from static to shared.

    Also libbluray*.jar could be build on le but java and ant is required to build. Both could be added as a package (jdk-8u162-linux-x64.tar.gz, apache-ant-1.10.2-bin.tar.xz).


    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ĺl try to test it in the next few days. It would be nice to include it in the final LE9 (Generic) release.


    Thank you for your work vpeter  

  • So I added apache-ant, jdk and jre packages and build compete libbluray including jar file which should be part of the image (+760 KB).

    The only missing part are few libraries which needs to be build dynamic and not (only) static.


    JRE addon almost done too.


    Progress: Commits · vpeter4/LibreELEC.tv · GitHub


    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)


  • How does this actually work? How the system environment variable for java is set so that the player knows jre is installed?

    LibreELEC (Leia) on Raspberry Pi 4B

  • Variables are set from /storage/.kodi/addons/java/profile.d/java.profile

    Code
    1. # needs to point where jre folder is set
    2. export JAVA_HOME=/storage/.kodi/addons/java/
    3. # look for libbluray-*.jar in this folder (with / at the end)
    4. export LIBBLURAY_CP=/storage/.kodi/addons/java/
    5. # or set file directly
    6. # export LIBBLURAY_CP=/storage/.kodi/addons/java/libbluray-j2se-1.0.1.jar


    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)


  • So can this be used in combo with make mkv to play discs?

    I´m using the latest version from makemkv with LE 8.2.4. With the Alpha LE9 makemkv is not working at the moment. There is also a thread in the makemkv and in the kodi forum. And bd-j is only working with LE9.



    Was anyone in doubt? =O

    Not me :)

  • hmm, is there anything I'm missing?

    Milhouse installed, jre at place, but no menus...

    LibreELEC (Leia) on Raspberry Pi 4B

  • Enable kodi debug log and post it.

    If I open br with java menu and without my addon I get some notification on screen. Forgot what exactly.


    Maybe you don't have br with menu?


    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)


  • Try it with simplified menu in the playback settings. Then choose in the simplified popup -> play with menu.

  • Try it with simplified menu in the playback settings. Then choose in the simplified popup -> play with menu.

    I think that is actually the same.

    For me only the Non-Java Menus work. All BDJ-Menus won't work.

    LibreELEC (Leia) on Raspberry Pi 4B