Page 1 of 1

Error opening registry key - Java Runtime Environment

Posted: 20 Mar 2018 05:42
by markfilipak
I have a persistent error in a fresh install of VLC 2.2.8. The VLC debug window shows this:
src/libbluray/bdj/bdj.c:78: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdy/bdj.c:460: BD-J check: Failed to load JVM library
There is no 'HKLM\SOFTWARE\JavaSoft\Java Runtime Environment\' key!
But there is an 'HKLM\SOFTWARE\JavaSoft\JRE\' key.
So, I copied it into the Win7 Registry.
(Note: The 'code' tag doesn't seem to work right, so I used a 'quote' tag. I apologize for any inconvenience.)
Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE]
"CurrentVersion"="9.0.4"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE\9.0.4]
"JavaHome"="C:\\Program Files\\Java\\jre-9.0.4"
"RuntimeLib"="C:\\Program Files\\Java\\jre-9.0.4\\bin\\server\\jvm.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE\9.0.4\MSI]
"AUTOUPDATECHECK"="1"
"AUTOUPDATEDELAY"=""
"EULA"=""
"FROMVERSION"="NA"
"FullVersion"="9.0.4+11"
"INSTALLDIR"="C:\\Program Files\\Java\\jre-9.0.4\\"
"JAVAUPDATE"="1"
"JU"=""
"OEMUPDATE"=""
"PRODUCTVERSION"="9.0.4.0"


[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Enviroment]
"CurrentVersion"="9.0.4"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Enviroment\9.0.4]
"JavaHome"="C:\\Program Files\\Java\\jre-9.0.4"
"RuntimeLib"="C:\\Program Files\\Java\\jre-9.0.4\\bin\\server\\jvm.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Enviroment\9.0.4\MSI]
"AUTOUPDATECHECK"="1"
"AUTOUPDATEDELAY"=""
"EULA"=""
"FROMVERSION"="NA"
"FullVersion"="9.0.4+11"
"INSTALLDIR"="C:\\Program Files\\Java\\jre-9.0.4\\"
"JAVAUPDATE"="1"
"JU"=""
"OEMUPDATE"=""
"PRODUCTVERSION"="9.0.4.0"
This DID NOT fix the problem. Does anyone know of a fix? (I found lots of posts about this around the Internet, but no clear statements and no fix.)

Much Thanks.

Re: Error opening registry key - Java Runtime Environment

Posted: 20 Mar 2018 10:58
by garf
Hello,

I suggest you try the new stable version of VLC (3.0.X):
https://www.videolan.org/vlc/index.html

Regards,

--
Simon Latapie

Re: Error opening registry key - Java Runtime Environment

Posted: 20 Mar 2018 20:19
by markfilipak
I suggest you try the new stable version of VLC (3.0.X):
https://www.videolan.org/vlc/index.html
Thank you, Simon. I downloaded it and will get back here if problems. I'm also trying to make my 3rd $-contribution to the project but I'm having problems with PayPal (or my bank, not sure which).

Fond Regards, Mark.
How did I not know there was a new version? ...my oh my.

Re: Error opening registry key - Java Runtime Environment

Posted: 20 Mar 2018 21:58
by markfilipak
Okay, I upgraded to VLC 3.0.1 and played a bluray. There immediately are 3 issues:

1 - Though JRE 9.0.4 is installed, playing a bluray provokes error dialog:
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.
2 - 'View'>'Add Interface'>'Debug logging' does not open a debug window.

3 - The installer preserved some user preferences and destroyed other user preferences.

Re: Error opening registry key - Java Runtime Environment

Posted: 21 Mar 2018 04:28
by markfilipak
My Windows Registry contains the right stuff for JRE. My hard disk has the right stuff for JRE and it matches the Windows Registry entries.

Here's a silly question (I hope):

Can VLC not find the DLL because the path has a space in it (to wit: 'c:\Program Files\Java\jre-9.0.4\bin\server\jvm.dll')?

PS: Actually, it may not be a silly question because VLC seems to be unable to find anything in the 'C:\Program Files\' path. Look:
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\access\libaccess_bd_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\access\librar_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\access\libzip_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\audio_filter\liba52tofloat32_plugin.dll
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\audio_filter\liba52tospdif_plugin.dll
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\audio_filter\libdtstofloat32_plugin.dll
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\audio_filter\libdtstospdif_plugin.dll
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\audio_filter\libmpgatofixed32_plugin.dll
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\codec\libdts_plugin.dll
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\codec\libmpeg_audio_plugin.dll
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\codec\libquicktime_plugin.dll
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\demux\libh264_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\demux\libhevc_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\gui\libqt4_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\stream_filter\libdash_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\stream_filter\libhttplive_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\stream_filter\libsmooth_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\stream_out\libstream_out_langfromtelx_plugin.dll
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\stream_out\libstream_out_raop_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\video_filter\libatmo_plugin.dll
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\video_filter\libaudiobargraph_v_plugin.dll
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\video_filter\liblogo_plugin.dll
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\video_filter\libmarq_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\video_filter\libmosaic_plugin.dll
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\video_filter\libremoteosd_plugin.dll
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\video_filter\librss_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\video_filter\libsubsdelay_plugin.dll
main warning: cannot find plug-in entry point in C:\Program Files\VideoLAN\VLC\plugins\video_filter\libyuvp_plugin.dll
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\video_output\libdirect2d_plugin.dll' (The specified procedure could not be found. (error 127))
main warning: cannot load module `C:\Program Files\VideoLAN\VLC\plugins\video_output\libdirect3d_plugin.dll' (The specified procedure could not be found. (error 127))

Re: Error opening registry key - Java Runtime Environment

Posted: 21 Mar 2018 15:40
by robUx4
It looks like you installed VLC 3.0 on top of VLC 2.2. You have to uninstall 2.2 before installing 3.0.

Re: Error opening registry key - Java Runtime Environment

Posted: 21 Mar 2018 18:47
by markfilipak
As suggested, I uninstalled VLC 3.0.1 -- and I deleted the directories left behind -- and reinstalled VLC 3.0.1 fresh. I turned on logger & tried to enable Debug window. Then I tried to play a bluray.

All of the problems are still there. A clean install fixed nothing.

Re: Error opening registry key - Java Runtime Environment

Posted: 02 Aug 2018 10:37
by Nimelrian
Running on Win 10 Professional 64bit
VLC 3.0.3 (Stable from website)

Trying to play a bluray shows the following errors in the console:

Code: Select all

src/libbluray/bdj/bdj.c:126: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\ src/libbluray/bdj/bdj.c:689: BD-J check: Failed to load JVM library
This key exists though and I can read it without any problems using e.g. PowerShell:

Code: Select all

PS C:\Users\Nimelrian> Get-Item -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\' Hive: HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft Name Property ---- -------- Java Runtime Environment CurrentVersion : 1.8 BrowserJavaVersion : 11.181.2