Page 1 of 1

Error: Could not Create Java Virtual Machine

Posted: 09 Feb 2021, 13:32
by GreenLantern81
Hi!

I restarted my computer and got this message when im trying to run Filebot Portable 4.9.2:
Error: Could not create the Java Virtual Machine.
Error: A fatal execption has occurred. Program will exit.


I think it has to do with the windows environment variables options in windows!? But what do i exactly do to fix this? Im using Windows 10. I tried to install jdk-15.0.2_windows-x64_bin but that didnt change anything. Can i add something in the windows environment variables option in windows?
Please help!

Best Regards
Dennis

Re: Error: Could not Create Java Virtual Machine

Posted: 09 Feb 2021, 13:49
by rednoah
Have you tried the MSI installer yet?


:idea: Both MSI installer and ZIP package include their own private JRE, so the JRE installed (or not) makes no difference.


:idea: Since the error message doesn't seem to say anything specific, I also can't tell you why it might not work. Best to Google the error message. My best guess would be invalid manually configured JAVA_OPTS environment variables, though I would expect a more telling error message in this case.

Re: Error: Could not Create Java Virtual Machine

Posted: 09 Feb 2021, 14:59
by GreenLantern81
Hi!

I tried to google my error but didnt find anyting useful. Mostly for linux or synology errors.
My JAVA_OPTS says: -DuseExtendedFileAttributes=true if that helps :)

Do i seriously need to reinstall my computer in order to get this right? :shock:

Re: Error: Could not Create Java Virtual Machine

Posted: 10 Feb 2021, 06:02
by rednoah
1.
Is this the complete console output? Or just last two lines?

Code: Select all

Error: Could not create the Java Virtual Machine.
Error: A fatal execption has occurred. Program will exit.
:arrow: viewtopic.php?t=1868



2.
Looks good to me. But why not remove JAVA_OPTS for good measure? The useExtendedFileAttributes option is enabled by default anyway.


:!: Note that environment variable changes do not propagate to running processes. If you're doing trial & error testing, make sure to restart your machine for each test.



3.
If you can pinpoint and fix the root cause of the issue, then you will not need to reinstall your computer.

Re: Error: Could not Create Java Virtual Machine

Posted: 11 Feb 2021, 08:58
by GreenLantern81
SOLVED!

In environment variables there were an option enabled that disabled xattr. That same option were added to the windows desktop shortcut!
Thank you for trying to help me!!