Page 1 of 2
VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 11 Feb 2018 21:54
by mukiex
So I get this error when trying to play a menu-carrying Blu-Ray movie in 3.0.0:
Code: Select all
Java required:
This Blu-ray disc requires Java for menus support.Java was not found on your system.
The disc will be played without menus.
I've installed Zulu, which is an OpenJDK port for Windows, as I'm not a great big fan of Java. I did see via ticket # 17713 that JRE 9 is not yet supported, so I also installed the JRE 8 version of Zulu. In addition, under Windows Environment Variables, I set JAVA_HOME to C:\Program Files\Zulu\zulu-8\bin
I still get the error in VLC. Is this the correct way to "set" the java executable path in Windows, or is there another way to do it in the Windows built for VLC?
Any information would be awesome (VLC 3.0 is super-amazing, btw. The sheer amount of stuff they've added is crazy).
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 12 Feb 2018 00:31
by Jean-Baptiste Kempf
Be careful, you need java 64bits, if you use VLC 64bits
(and 32bits in the other case)
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 13 Feb 2018 02:55
by mukiex
Thanks for responding!
I went ahead and checked, and then downloaded VLC 3.0.0 Win64. So now it looks like both Zulu and VLC are in the Program Files folder, and not the Program Files (x86) one.
I directly ran VLC from C:\Program Files\VideoLAN\VLC, and the same error came up. My Java executable is in C:\Program Files\Zulu\zulu-8\bin ; is there any way to verify if VLC is aware of the path, or is there a settings to point to it?
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 25 Jul 2018 11:39
by drmandarin
Is there any update on this please? I.e. is there a setting to control how VLC finds the required Java installation?
Alternatively please let us know how VLC checks for local Java installation. I have 32bit VLC and 32bit Java 8, but VLC complains that it cannot find Java installed.
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 25 Jul 2018 13:46
by Jean-Baptiste Kempf
What version of Java8?
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 25 Jul 2018 15:35
by drmandarin
1.8.0_181-b13
Please let us know
1. Whether there is a setting that controls how VLC finds the Java installation; and
2. How VLC finds the Java installation (e.g. check for a reg key, check a particular env var, etc.).
Ideally this information would be reflected in user documentation.
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 25 Jul 2018 15:53
by Jean-Baptiste Kempf
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 25 Jul 2018 19:00
by drmandarin
1. Thanks for confirming.
2. Thanks for the link. Referenced registry keys and JAVA_HOME are all set correctly yet VLC doesn't manage to locate JVM runtimes.
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 26 Jul 2018 00:05
by Jean-Baptiste Kempf
1. Thanks for confirming.
2. Thanks for the link. Referenced registry keys and JAVA_HOME are all set correctly yet VLC doesn't manage to locate JVM runtimes.
That requires advanced debugging then, with the command line.
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 26 Jul 2018 09:37
by drmandarin
Perhaps you would be good enough to let me know exactly what you'd like me to try.
I've checked the Messages window with verbosity set to 2 while testing but the debug messages listed in the code are not written to this window.
Command line seems to have the same verbosity options so it's not clear whether the debug messages would be listed in the command-line output with the same verbosity, nor why the debug messages are not shown in the Messages window.
So if there's a specific command + options that you'd like me to run please specify.
Also, the command-line help doesn't show the URL syntax for a Blu-ray disc:
Code: Select all
URL syntax:
file:///path/file Plain media file
http://host[:port]/file HTTP URL
ftp://host[:port]/file FTP URL
mms://host[:port]/file MMS URL
screen:// Screen capture
dvd://[device] DVD device
vcd://[device] VCD device
cdda://[device] Audio CD device
udp://[[<source address>]@[<bind address>][:<bind port>]]
UDP stream sent by a streaming server
vlc://pause:<seconds> Pause the playlist for a certain time
vlc://quit Special item to quit VLC
core program (core)
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 26 Jul 2018 15:32
by Jean-Baptiste Kempf
vlc bluray:// for blurays
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 26 Jul 2018 18:08
by drmandarin
OK but the point is that it's missing from the command-line help for some reason.
Per previous message, if there's a specific command you would like me to run with particular options to generate the "advanced debugging" please let me know.
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 26 Jul 2018 18:58
by Jean-Baptiste Kempf
BD_DEBUG_MASK=0x02000 vlc.exe -vvv
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 27 Jul 2018 10:55
by drmandarin
No additional debug messages are logged. As soon as VLC opens, the usual window with the Java error is shown:
Code: Select all
Java required:
This Blu-ray disc requires Java for menus support.Java was not found on your system.
The disc will be played without menus.
No additional messages in the Messages window:
Code: Select all
main debug: VLC media player - 3.0.3 Vetinari
main debug: Copyright © 1996-2018 the VideoLAN team
main debug: revision 3.0.3-1-0-gc2bb759264
main debug: configured with ../extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-x264' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-dvdread' '--enable-shout' '--enable-goom' '--enable-caca' '--enable-qt' '--enable-skins2' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-nls' '--host=i686-w64-mingw32' '--with-breakpad=https://win.crashes.videolan.org' 'host_alias=i686-w64-mingw32' 'PKG_CONFIG_LIBDIR=/home/jenkins/workspace/vlc-release/windows/vlc-release-win32-x86/contrib/i686-w64-mingw32/lib/pkgconfig'
main debug: auto hiding mouse cursor
And nothing at all output to the command-line window:
Code: Select all
C:\Program Files (x86)\VideoLAN\VLC>BD_DEBUG_MASK=0x02000 vlc.exe -vvv bluray://W:/
'BD_DEBUG_MASK' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\VideoLAN\VLC>echo %BD_DEBUG_MASK%
%BD_DEBUG_MASK%
C:\Program Files (x86)\VideoLAN\VLC>set BD_DEBUG_MASK=0x02000
C:\Program Files (x86)\VideoLAN\VLC>echo %BD_DEBUG_MASK%
0x02000
C:\Program Files (x86)\VideoLAN\VLC>vlc.exe -vvv bluray:///W:/
C:\Program Files (x86)\VideoLAN\VLC>
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 27 Jul 2018 11:54
by Jean-Baptiste Kempf
Try to set BD_DEBUG_FILE also
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 27 Jul 2018 16:44
by drmandarin
Sure. What is the required format for the path string for BD_DEBUG_FILE? E.g. should I use forwardslashes or backslashes? Double or single? Absolute or relative path to file?
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 27 Jul 2018 17:01
by ale5000
I haven't tried but I think forward slashes and absolute path should always work on Windows in any case.
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 27 Jul 2018 18:42
by drmandarin
Well I was hoping, given that Jean-Baptiste is a VLC developer, for a definitive answer especially in light of VLC's rather unpredictable requirement for single, double or triple slashes.
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 27 Jul 2018 21:09
by ale5000
I know but he may be busy and it is faster to try directly; forward slashes never need to be escaped, instead for backslashes depend from the context so forward slashes are always safer.
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 29 Jul 2018 23:05
by Jean-Baptiste Kempf
I have no idea. I would just use no slash and hope it creates the file locally
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 27 Aug 2020 20:45
by jimjulian
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 17 Aug 2022 23:54
by Aqualung
Is there a final resolution on this matter? Or is it that we should just not bother running Java-based menus on BR disks?
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 23 Aug 2022 04:25
by Vitcher
I also had trouble with bluray menus, but managed to found compatible vlc and java versions.
I wrote mini guide on how to troubleshoot java and libbluray:
https://forum.videolan.org/viewtopic.php?f=14&t=160477
It shows how to get logs from libbluray, and how to interpret them.
Give it a go, maybe you will find it helpful.
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 24 Aug 2022 23:52
by Aqualung
Thank you for going to the trouble of figuring it out. At this point, my time doesn't permit me to undertake this debugging exercise, so I'll just declare myself content with watching Blu-Ray movies w/o the menus.
Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?
Posted: 18 Dec 2023 00:11
by kcorey
I wanted to post what worked for me in case it helps others.
I'm using Windows 11 22H2, VLC 3.0.20 Vetinari, and JDK jdk-17_windows-x64_bin.exe.
I'd already installed the keys and dll to be able to read a bluray disk, and installed the jdk at D:\Program Files (x86)\Java\jdk-17.
In Explorer, right click on 'This PC', select 'Properties'.
In the search box, type 'env', select 'Edit the System Variables'.
I created three new environment variables:
BD_DEBUG_FILE=c:\users\<myaccount>\vlc_debug.txt
BD_DEBUG_MASK=0x02000
JAVA_HOME=D:\Program Files (x86)\Java\jdk-17
Then, I prepended the bin directory of the jdk to BOTH my personal PATH, and the system PATH:
PATH=D:\Program Files (x86)\Java\jdk-17\bin;C:\<blah,blah,blah>
Terminate VLC, and start it again.
Ensure there's a Bluray disc in the drive.
From the menu select: Media->Open Disc...
Click on Blu-ray radio button
Click Play.
Hope that helps someone.