VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
mukiex
New Cone
New Cone
Posts: 8
Joined: 11 Feb 2018 21:48

VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby mukiex » 11 Feb 2018 21:54

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).

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby Jean-Baptiste Kempf » 12 Feb 2018 00:31

Be careful, you need java 64bits, if you use VLC 64bits :D (and 32bits in the other case)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mukiex
New Cone
New Cone
Posts: 8
Joined: 11 Feb 2018 21:48

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby mukiex » 13 Feb 2018 02:55

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?

drmandarin
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Jan 2014 19:19

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby drmandarin » 25 Jul 2018 11:39

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby Jean-Baptiste Kempf » 25 Jul 2018 13:46

What version of Java8?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

drmandarin
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Jan 2014 19:19

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby drmandarin » 25 Jul 2018 15:35

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby Jean-Baptiste Kempf » 25 Jul 2018 15:53

Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

drmandarin
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Jan 2014 19:19

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby drmandarin » 25 Jul 2018 19:00

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby Jean-Baptiste Kempf » 26 Jul 2018 00:05

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.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

drmandarin
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Jan 2014 19:19

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby drmandarin » 26 Jul 2018 09:37

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)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby Jean-Baptiste Kempf » 26 Jul 2018 15:32

vlc bluray:// for blurays
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

drmandarin
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Jan 2014 19:19

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby drmandarin » 26 Jul 2018 18:08

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby Jean-Baptiste Kempf » 26 Jul 2018 18:58

BD_DEBUG_MASK=0x02000 vlc.exe -vvv
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

drmandarin
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Jan 2014 19:19

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby drmandarin » 27 Jul 2018 10:55

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>

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby Jean-Baptiste Kempf » 27 Jul 2018 11:54

Try to set BD_DEBUG_FILE also
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

drmandarin
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Jan 2014 19:19

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby drmandarin » 27 Jul 2018 16:44

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?

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby ale5000 » 27 Jul 2018 17:01

I haven't tried but I think forward slashes and absolute path should always work on Windows in any case.

drmandarin
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Jan 2014 19:19

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby drmandarin » 27 Jul 2018 18:42

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.

ale5000
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 03 Mar 2004 16:12
Operating System: Windows
Contact:

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby ale5000 » 27 Jul 2018 21:09

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby Jean-Baptiste Kempf » 29 Jul 2018 23:05

I have no idea. I would just use no slash and hope it creates the file locally :)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Aqualung
Cone that earned his stripes
Cone that earned his stripes
Posts: 116
Joined: 30 Nov 2003 05:47
Location: Teenage Wasteland

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby Aqualung » 17 Aug 2022 23:54

Is there a final resolution on this matter? Or is it that we should just not bother running Java-based menus on BR disks?

Vitcher
Blank Cone
Blank Cone
Posts: 15
Joined: 07 Aug 2022 19:26

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby Vitcher » 23 Aug 2022 04:25

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.

Aqualung
Cone that earned his stripes
Cone that earned his stripes
Posts: 116
Joined: 30 Nov 2003 05:47
Location: Teenage Wasteland

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby Aqualung » 24 Aug 2022 23:52

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.

kcorey
New Cone
New Cone
Posts: 1
Joined: 17 Dec 2023 23:59

Re: VLC 3.0.0 - Manually set Java location for Blu-Ray menus?

Postby kcorey » 18 Dec 2023 00:11

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.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 41 guests