Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Linux Kodi can't find Java under Ubuntu
#1
Hi everyone,
After years of running Kodi using Libreelec I am currently installing it (Kodi 20.1) on a Ubuntu 22.04.2 LTS 64bit PC.
I am however stuck on one point: I can't seem to be ale to get java menus for BD to work.
Whenever I set the setting under Player -> Disks -> Use BlueRay Menu it says that it can't find java.
However, both the JRE and JDK are installed:

Code:

$ javac -version
javac 18.0.2-ea

$ java -version
openjdk version "18.0.2-ea" 2022-07-19
OpenJDK Runtime Environment (build 18.0.2-ea+9-Ubuntu-222.04)
OpenJDK 64-Bit Server VM (build 18.0.2-ea+9-Ubuntu-222.04, mixed mode, sharing)

$ echo $JAVA_HOME
/usr/lib/jvm/java-18-openjdk-amd64/bin/

Any idea what is wrong here?
The log seems utterly useless, all it says is "debug <general>: DiscSettings - Could not load the java vm."

Any help would be appreciated
Greetings,
Pete
Reply
#2
this is quite old but i wonder if this method still works - https://forum.kodi.tv/showthread.php?tid=340269

(2019-02-04, 16:35)wsnipex Wrote: why oracle java 11?
 
Code:
$ apt depends libbluray-bdj
libbluray-bdj
  Depends: libbluray2 (>= 1:1.0.2-3)
  Depends: libbluray2 (<< 1:1.0.2-3.1~)
  Depends: openjdk-8-jre-headless
  Depends: libasm-java
so simply installing libbluray-bdj should install the correct jre automatically
Reply
#3
I tried that, even removing java and reinstalling it using that command, but to no success.
Playing the disc directly is no problem, only the menu is not able to open.

EDIT:
Turns out Ubuntu 22 comes with an old libbluray version.
Reinstalling as Ubuntu 23 and on top of that installing openjdk 11 allows VLC to play the discs without problem and Kodi doesn't complain about missing Java.
But it still just crashes instead of displaying the menu. So somehow VLC is able to play it while Kodi says:
"Playback failed - One or more items failed to play. Check the log ..."

Now for fun I have taken a log and pasted it, maybe somebody can figure out what's wrong here:
zoquqefuni.kodi (paste)

All I can see that relates to this issue is:
Code:
2023-05-22 01:53:10.504 T:4213 error <general>: Open - error probing input format, /media/test/GROUNDHOG_DAY/BDMV/index.bdmv
2023-05-22 01:53:10.504 T:4213 error <general>: OpenDemuxStream - Error creating demuxer

But I don't really know what issue Kodi could have.
As a side-note, I am using makemkv for the playback, maybe Kodi has an issue here?
Greetings,
Pete
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi can't find Java under Ubuntu0