Add built-in Java support

  • thank you. AT least java seems to run now.

    But I get a lot of errors like ERROR: GetDirectory - Error getting udf://smb.....iso/BDMV/JAR/88888/disc.properties (well the dir doesn't exist) and then the bluray doesn't start or it stalls after the first trailer.

    Some work though, but the whole thing seems indeed pretty alpha to me ;)

    LibreELEC (Leia) on Raspberry Pi 4B

    Edited once, last by novalis ().

  • vpeter , have you ever tried to build bd-j support based on openjdk?


    I tried your commit to build it by my self and oracle doesn't allowed it to download it. updating to a newer version is also failing. openjdk is here also when open software in mind the better solution.

  • I quickly tried to build libblueray with openjdk but seems there is some issue.

    Code
    1. [javac] error: Source option 5 is no longer supported. Use 6 or later.
    2. [javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.

    No idea what it means.


    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)


  • Using openjdk jdk8u192 worked to build libblueray. I assume it would also run. But I have no intention to test.


    jdk-8u192-ea-bin-b04-linux-x64-01_aug_2018.tar.gz


    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)


  • after a short look source and target flag are either not set (therefore a default) or set to an older version. how you have changed to open jdk? maybe i can assist.

  • It is fine now with this package.mk

    jre should also be updated.


    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)


  • jre package:


    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 thx so far, i will try if it is working with openjdk. if yes my idea is to use openjdk source to build jre for all arch (arm/x86) and use it. i can imaging it would be the only way to get it into LE master.


    i would deny the oracle bins.

  • Can any be distributed in final zip? If not addon should be download it on first use.


    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)


  • Some progress information: it seems the jre is depend on some X11 libs which means there will be no rpi builds because rpi is not using X11

  • it seems the jre is depend on some X11 libs which means there will be no rpi builds because rpi is not using X11

    Just copy them from respbian as with current addon: X11 libraries from raspbian


    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 doubt it will work because rpi is not working with x11 and therefore when i am using 3 x libs for java the whole xserver is still not available and has more dependencies. rpi is working directly on framebuffer for my understanding in LE. mybe i have not read it but no one has a success story on rpi or miss i something?

  • No, you are wrong. As you can see there is already this addon for RPi which works fine. Those X11 libraries are needed by java to actually run but it doesn't display anything on X display. So all is good :)


    Working RPi addon: bluray-menu-rpi2.tar.gz


    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)