Page 1 of 1

Can't run UMS

Posted: Sun Mar 17, 2013 6:35 pm
by elscorcho
I have upgraded to Java7 but still won't run, msg:
'Java Virtual Machine Launcher
Could not find the main class: net.pms.PMS. Program will exit.'
?

Re: Can't run UMS

Posted: Mon Mar 18, 2013 5:26 pm
by orgon3
Same here. This happened right after installing 2.5.2.

Re: Can't run UMS

Posted: Mon Mar 18, 2013 6:10 pm
by Optimus_prime
Reinstall and when you get to the screen "Advanced Settings" set the Java heap limit to 1200. I'll report this to Subjunk as he's changed the code for computers with greater than 4GB of ram to have a larger heap size.
I'm sure this will be fixed by the next release.

EDIT: If you dont wont to reinstall you can goto "Run" type "Regedit" Navigate to HKEY_CURRENT_USER\software\Univesal Media Server and change HeapMem to anything below 1200 and you'll be fine

Re: Can't run UMS

Posted: Tue Mar 19, 2013 4:30 am
by Silverbrain
Re running the setup with the heap at 1200 fixed the issue. Was about to set it back to 786, but thought I'd check here first. Thanks Optimus.

Re: Can't run UMS

Posted: Tue Mar 19, 2013 6:52 am
by orgon3
Optimus_prime wrote:Reinstall and when you get to the screen "Advanced Settings" set the Java heap limit to 1200. I'll report this to Subjunk as he's changed the code for computers with greater than 4GB of ram to have a larger heap size.
I'm sure this will be fixed by the next release.

EDIT: If you dont wont to reinstall you can goto "Run" type "Regedit" Navigate to HKEY_CURRENT_USER\software\Univesal Media Server and change HeapMem to anything below 1200 and you'll be fine
Setting to 1200 still caused the crash. Setting to 1199 still caused the crash. I set it back to 786 and it worked.

Re: Can't run UMS

Posted: Tue Mar 19, 2013 7:30 am
by Optimus_prime
That could be releated to other programs using java as well. If another program is utilising java as well it will lower the amount of Java Memory UMS will be able to allocate itself.

Re: Can't run UMS

Posted: Tue Mar 19, 2013 8:41 pm
by orgon3
Optimus_prime wrote:That could be releated to other programs using java as well. If another program is utilising java as well it will lower the amount of Java Memory UMS will be able to allocate itself.
javaw.exe was not running at all until I started UMS. When I exit UMS, javaw.exe terminates as well. It is safe to say that it is the only program currently using Java on my machine.

Re: Can't run UMS

Posted: Tue Mar 19, 2013 9:48 pm
by SubJunk
Hey it's scorchy! My old friend :D
Hmm, maybe the only safe thing is to go back to using 768 by default for everyone
In the meantime like what was already said, just re-install the program and in the installer replace 1152 in the memory box with 768