Print at Dec 16, 2025, 2:46:02 PM View all posts in this thread on one page
Posted by AgnesLP at Nov 10, 2022, 2:15:41 PM
Error "Could not create the Java Virtual Machine"
I am on Windows 10 Pro 64 Bits with 16GB RAM and now the latest versions of Java and SweetHome3D.

It was working fine, but I had problems with another programme, which prompted me to:
- Update Java
- Change my Advanced System Property and increase memory allocation
_JAVA_OPTIONS : -Xmx14000m

SInce then, I get an error when launching SH3D.
What I tried:
I have updtaed SW3D and Java.
If I reduce to -Xmx7000m or else, I have no error but WH3D does not launch at all.

WXHat can I do please?

Posted by Daniels118 at Nov 11, 2022, 7:17:11 AM
Re: Error "Could not create the Java Virtual Machine"
I fear SH3D isn't compatible with the latest Java versions, however if you use the SH3D installer version it comes with its own java bundle which should solve the problem. About memory allocation, you can overwrite the system-wide value for SH3D using a config file.

Posted by AgnesLP at Nov 14, 2022, 8:15:00 AM
Re: Error "Could not create the Java Virtual Machine"
Thanks @Daniels118.
What is the option you have here by default that works with SH3D?
_JAVA_OPTIONS : -Xmx14000m

Posted by Puybaret at Nov 14, 2022, 8:42:45 AM
Re: Error "Could not create the Java Virtual Machine"
How do you run Sweet Home 3D? If you use the installer version, you don't need to install Java and increasing the maximum memory used by the program is explained here.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by AgnesLP at Nov 15, 2022, 8:25:07 AM
Re: Error "Could not create the Java Virtual Machine"
Hi Emmanuel,

I am using the Exe: "C:\Program Files (x86)\Sweet Home 3D\SweetHome3D.exe"
I am on W10 and used the latest version for windows - Free version I found here: http://sourceforge.net/projects/sweethome3d/f....0.2-windows.exe/download

And I get the error by Java Virtual Machine Launcher:
"Error: could not create the Jaqva Virtual Machine."
"Error: a fatal exception has occurred. Program will exit. "

I tried to create a SweetHome3D.l4j.ini file in that folder with "-Xmx700m" inside, but the error strill pops up.

Should I uninsstall java and reinstallSH3D? Or use another version?

I am not a heavy used but I have some files I d like to access sometimes.

Thanks for the help
Agnes

Posted by Puybaret at Nov 15, 2022, 8:41:31 AM
Re: Error "Could not create the Java Virtual Machine"
If you use Windows 10 64 bit, could you run Sweet Home 3D installer again and install the 64 bit version of the program by selecting the 64 bit architecture in the screen where you can choose installation folder?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by AgnesLP at Nov 15, 2022, 9:39:29 AM
love struck   Re: Error "Could not create the Java Virtual Machine"
Perfect!
That worked with the 64 bits version, thanks a lot @Emmanuel.