Tue, 04/30/2024 - 06:01
After a JAVA update, I lost VSTAR.
Error: Could not create the JAVA Virtual Machine.
Does anyone remember what needs to be tweaked in JAVA to make VSTAR work? Something about max size somewhere in JAVA's set up file :
_JAVA_OPTIONS with -Xmx1024M
Can't remember where to find this thing.
Ray
Can you say what operating system you're using?
If Windows, the solution to your problem is probably here (it includes a section "Troubleshooting memory problems"):
https://github.com/AAVSO/VStar/wiki/Installation-Recipes#how-to-install-vstar-under-windows
David
Hi Brian
Using Windoze 11.
I had the same problem with Windoze 10 but managed to figure how to increase the maxsize at that time.
This time, on Win 11, rundll32.exe sysdm.cpl,EditEnvironmentVariables and deleting the _JAVA_OPTIONS variable line entirely fixed the problem. (after a reboot)
Can I now assume that JAVA apps can use all the memory they want to use? Is that a problem?
Editing the VSTAR ini (VSTAR Launcher Configuration) file a couple different ways and saving and rebooting was no fix.
Ray
The only thing I have ever seen that generates this error is if you have both a 32-bit and 64-bit JAVA runtimes installed on a 64-bit system. Also if you have the 32-bit JAVA runtime on a 64-bit machine will generate the error originally mentioned. If you are running 64-bt Windows you only want the 64-bit JAVA runtime installed. If you are running an older 32-bit machine you would want the 32-bit JAVA runtime. Uninstall all old versions is recommended by JAVA.
Jim (DEY)
Hi Ray,
It seems this issue is already described here: https://github.com/AAVSO/VStar/wiki/Installation-Recipes#troubleshooting-memory-problems
Best regards,
Max
Thanks for the tips folks!
I forgot now , how I fixed it a few days ago.
I think it was something about disabling the Java memory allocation line.
Anyhow, it works now.
Ray