High priority Error "Could not create the Java Virtual Machine"

This topic has been viewed 6655 times and has 6 replies
Thread status: Active
Questions about Sweet Home 3D installation [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
AgnesLP
Posts: 4
Joined: Mon Aug 15, 2016 8:00 pm

Error "Could not create the Java Virtual Machine"

Post by AgnesLP »

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?
User avatar
Daniels118
Posts: 503
Joined: Wed Nov 17, 2021 9:04 pm
Country: Italy

Re: Error "Could not create the Java Virtual Machine"

Post by Daniels118 »

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.
AgnesLP
Posts: 4
Joined: Mon Aug 15, 2016 8:00 pm

Re: Error "Could not create the Java Virtual Machine"

Post by AgnesLP »

Thanks @Daniels118.
What is the option you have here by default that works with SH3D?
_JAVA_OPTIONS : -Xmx14000m
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Error "Could not create the Java Virtual Machine"

Post by Puybaret »

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
AgnesLP
Posts: 4
Joined: Mon Aug 15, 2016 8:00 pm

Re: Error "Could not create the Java Virtual Machine"

Post by AgnesLP »

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/sweetho ... e/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
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Error "Could not create the Java Virtual Machine"

Post by Puybaret »

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
AgnesLP
Posts: 4
Joined: Mon Aug 15, 2016 8:00 pm

Re: Error "Could not create the Java Virtual Machine"

Post by AgnesLP »

Perfect!
That worked with the 64 bits version, thanks a lot @Emmanuel.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest