This Blu-ray disc requires Java for menus support.

*nix specific usage questions
IronRod
New Cone
New Cone
Posts: 7
Joined: 16 Apr 2017 17:22

This Blu-ray disc requires Java for menus support.

Postby IronRod » 26 Oct 2024 17:12

Attempting to play Blu-Ray disc and get the message:

Code: Select all

Java required: This Blu-ray disc requires Java for menus support. The disc will be played without menus.
I have Java installed:

Code: Select all

:~$ java --version openjdk 21.0.4 2024-07-16 OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04) OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu224.04, mixed mode, sharing)

Looking in "Tools > Messages" with verbosity 2 debug, the window is empty; there are no messages.
Is there some setting in VLC or an environment variable that needs to be set?

System:

Code: Select all

Kernel: 6.8.0-47-generic arch: x86_64 bits: 64 compiler: gcc v: 13.2.0 clocksource: tsc Desktop: Cinnamon v: 6.2.9 tk: GTK v: 3.24.41 wm: Muffin v: 6.2.0 vt: 7 dm: LightDM v: 1.30.0 Distro: Linux Mint 22 Wilma base: Ubuntu 24.04 noble Machine: Type: Desktop Mobo: Gigabyte model: B550 AORUS PRO V2 serial: <superuser required> uuid: <superuser required> UEFI: American Megatrends LLC. v: F18d date: 09/02/2024 CPU: Info: 8-core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP smt: enabled arch: Zen 2 rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 32 MiB Speed (MHz): avg: 2394 high: 4266 min/max: 2200/4426 boost: enabled volts: 1.1 V ext-clock: 100 MHz cores: 1: 2200 2: 2155 3: 2200 4: 4266 5: 2200 6: 2200 7: 2200 8: 2200 9: 2200 10: 2200 11: 2200 12: 3290 13: 2196 14: 2200 15: 2200 16: 2200 bogomips: 114980 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm Graphics: Device-1: NVIDIA TU116 [GeForce GTX 1660 SUPER] vendor: ASUSTeK driver: nvidia v: 550.107.02 arch: Turing pcie: speed: 8 GT/s lanes: 16 ports: active: none off: HDMI-A-1 empty: DP-1,DVI-D-1 bus-ID: 07:00.0 chip-ID: 10de:21c4 class-ID: 0300 Device-2: Logitech QuickCam Pro 9000 driver: snd-usb-audio,uvcvideo type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-6.3:4 chip-ID: 046d:0990 class-ID: 0102 serial: <filter> Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X: loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia,nvidia-nvswitch display-ID: :0 screens: 1 Screen-1: 0 s-res: 2560x1440 s-dpi: 92 s-size: 707x393mm (27.83x15.47") s-diag: 809mm (31.85") Monitor-1: HDMI-0 res: 2560x1440 hz: 120 dpi: 93 size: 697x392mm (27.44x15.43") diag: 800mm (31.48") modes: N/A API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2 drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia x11: drv: nvidia inactive: wayland,device-1 API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.107.02 glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2 API: Vulkan v: 1.3.275 layers: 4 surfaces: xcb,xlib device: 0 type: discrete-gpu driver: N/A device-ID: 10de:21c4 device: 1 type: cpu driver: N/A device-ID: 10005:0000 Audio: Device-1: NVIDIA TU116 High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 07:00.1 chip-ID: 10de:1aeb class-ID: 0403 Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 09:00.4 chip-ID: 1022:1487 class-ID: 0403 Device-3: Logitech QuickCam Pro 9000 driver: snd-usb-audio,uvcvideo type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-6.3:4 chip-ID: 046d:0990 class-ID: 0102 serial: <filter> API: ALSA v: k6.8.0-47-generic status: kernel-api Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin

IronRod
New Cone
New Cone
Posts: 7
Joined: 16 Apr 2017 17:22

Re: This Blu-ray disc requires Java for menus support.

Postby IronRod » 26 Oct 2024 17:41

From this post (https://forum.videolan.org/viewtopic.ph ... va#p546583) I note that it includes the libbluray-bdj which I didn't have. So, I installed it:

Code: Select all

sudo apt install libbluray-bdj

Now, when I open the disc, the error no longer appears but it doesn't start the menus. But it apparently can now read the metadata as the disc thumbnail now appears.

If I double-click the disc to start it, I get this error:

Code: Select all

Blu-ray error: Failed to start bluray playback. Please try without menu support. Your input can't be opened: VLC is unable to open the MRL 'bluray:///dev/sr0'. Check the log for details.

Here's the log: https://pastebin.com/SU3NvrzX

JowKnee
New Cone
New Cone
Posts: 1
Joined: 23 Dec 2024 16:45

Re: This Blu-ray disc requires Java for menus support.

Postby JowKnee » 23 Dec 2024 17:22

@IronRod:
First of all, thank you for mentioning "If I double-click the disc to start it".
VLC does play the bluray even when the disc is not mounted. When it is mounted then the menu works.
But let me start at the beginning so, maybe you might find some differnces in the configuration.
Also, I haven't found a complete guide how to get the bluray menu working hence I will just post it here, so some future visitors might also find this helpful.

This atleast worked with Fedora 40 XFCE.

Info:
Please make sure that the java and the vlc both share the same architecture, like x86_64 for 64-bit machines.

I needed to install the following packages:

Code: Select all

- vlc - libbluray (on other guide I saw it was called libbluray2) - libaacs - java-21-openjdk.x86_64 (I just used the one with the longest support time) - libaacs-devel (on other distros just libaacs-dev) - libbluray-bdj (this is for the menu) - libbdplus (don't know if this is optional, but it was mentioned in some other post, haven't tested it by removing it)


To let vlc "know" where java is you need to set some variables:
open bashrc with your prefered editor:

Code: Select all

nano ~/.bashrc

And add the following at the end:

Code: Select all

# added java variables: export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-21.0.5.0.11-1.fc40.x86_64 export PATH=$JAVA_HOME/bin:$PATH
The JRE_HOME seems to not be used, at least I got no issues when leaving that out.

Your current path to your java version should lie in /usr/lib/jvm/
Another guide mentioned to use:

Code: Select all

readlink -f /usr/bin/java | sed "s:/bin/java::"
This shows you the path, it might be different on ther distros.

After you successfully added those 2 variables to bashrc you need to use the following to update/reread bashrc:

Code: Select all

source ~/.bashrc
These variables will set only for the current user, currently I don't know how to set them system-wide, for multiple users, but mostly 1 user is sufficient.

Now all should be set to get the menu working.

If you can't play the bluray yet, then there might the keydb.cfg missing.
Error with: "Missing AACS configuration file" might be shown.

On the Arch-wiki they got a Blu-Ray article and under 2.1 in the second point it is mentioned where you get it.
Rename that file to KEYDB.cfg and put it into:

Code: Select all

~/.config/aacs
If you search for the error, you will also find an askubuntu article which mentions this procedure shortly.


Short info:
VLC will play the bluray even unmounted, so if you have bluray menus enabled and the disk is not mounted yet you will see only a loading disk symbol.
Mount the disk, for example with double clicking on the transparent disk symbol on your desktop.
If the disc is mounted then the menu will work, took me some time to get this.


I hope this small guide will help future vistors.

------------------------------------

@IronRod, did you solve your problem in the meantime?

Maybe the java version wasn't compatible at the time you posted this(?), my current version is:

Code: Select all

openjdk 21.0.5 2024-10-15 OpenJDK Runtime Environment (Red_Hat-21.0.5.0.11-1) (build 21.0.5+11) OpenJDK 64-Bit Server VM (Red_Hat-21.0.5.0.11-1) (build 21.0.5+11, mixed mode, sharing)
I've seen posts where others used Java 8 LTS, might be worth trying.

Also I saw some older posts that libbluray isn't compatible with java 20+ versions, I currently have the libbluray version:

Code: Select all

1.3.4-5
Maybe they fixed the compatibility issue and you just need an update(?)

Does the vlc version and the java version share the same architecture?

I also searched for you specific error message, but could only find it in the bluray.c file of the vlc github project...

IronRod
New Cone
New Cone
Posts: 7
Joined: 16 Apr 2017 17:22

Re: This Blu-ray disc requires Java for menus support.

Postby IronRod » 25 Jan 2025 20:04

Thanks for replying with this info. At this time, I am running LinuxMint 22.1.

As I check now, java shows:

Code: Select all

$ java --version openjdk 21.0.5 2024-10-15 OpenJDK Runtime Environment (build 21.0.5+11-Ubuntu-1ubuntu124.04) OpenJDK 64-Bit Server VM (build 21.0.5+11-Ubuntu-1ubuntu124.04, mixed mode, sharing)
These items are installed:

Code: Select all

vlc libbluray-bdj libbluray2 libaacs0 libbdplus0 openjdk-21-jre-headless
I haven't installed the dev libraries as I do not believe they should be required unless doing development work?

I added the following to my .bashrc:

Code: Select all

# BluRay export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 export PATH="$PATH:$JAVA_HOME/bin"
Then ran source .bashrc.

The Java jvm is present:

Code: Select all

$ readlink -f /usr/bin/java | sed "s:/bin/java::" /usr/lib/jvm/java-21-openjdk-amd64

I now get this error:

Code: Select all

Blu-ray error: Playback with BluRay menus failed
Of course, the disc still plays and the lead-in video will run. But when it is ready to switch to the menu, it fails with that error. If I select "Playback > Top Menu" in VLC I get the same error.

I thought it might be a small thing (nope!). But I rip my videos to a media server from where I primarily watch them, so the menus aren't critical to me. However, if continuing this effort is valuable to others, I'm willing to continue looking into this.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 35 guests