Java Virtual Machine Launcher - A Java exception has occurre

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
zabadoh
Posts: 4
Joined: Wed May 07, 2014 10:01 am

Java Virtual Machine Launcher - A Java exception has occurre

Post by zabadoh »

I've just installed UMS for the first time on this machine: Win 7 x64 SP1, current Windows patches, AMD Phenom X2, 8GB RAM

When launching for the first time, I got this dialog:

Image

I've tried updating Java to 7.55, and removing old versions, but no luck. I get the same dialog when trying to start UMS.

Any ideas on how to get around this?

edit: Per the FAQ, I have uninstalled and re-installed Java, but I'm getting the same error.
User avatar
Optimus_prime
Posts: 678
Joined: Fri Jun 01, 2012 6:39 pm
Location: Sydney, Australia

Re: Java Virtual Machine Launcher - A Java exception has occ

Post by Optimus_prime »

Which version of UMS? Also have you installed Java 32bit or 64bit (not that it should matter, you could try an opposite version)?
How Ask For Support
Remember, Debug Log's Can/Will Help and Explain your issues, we're not mind reader's but here to help
OS's I Use And Can Assist With: Windows 7/8, Mac OS-X 10.8 & 10.9
Mac OS-X Java 7 Builds Mac OS-X Java 7 Forum
zabadoh
Posts: 4
Joined: Wed May 07, 2014 10:01 am

Re: Java Virtual Machine Launcher - A Java exception has occ

Post by zabadoh »

UMS version 3.6.0. I didn't specifically download the 64-bit version, so my Java version must be 32-bit.

edit: I've tried launching it from command line:

i.e. C:\Program Files\Universal Media Server> java -jar ums.jar

Exception in thread "main" java.lang.UnsupportedClassVersionError: net/pms/PMS :
Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
zabadoh
Posts: 4
Joined: Wed May 07, 2014 10:01 am

Re: Java Virtual Machine Launcher - A Java exception has occ

Post by zabadoh »

I'm still trying to figure out why UMS isn't starting.

Is this really an unsupported java version problem as the error messages say below?
x64 or x86 version of Java doesn't seem to make much difference.

C:\Program Files (x86)\Universal Media Server>java -showversion -classpath ums.jar net.pms.PMS
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

Exception in thread "main" java.lang.UnsupportedClassVersionError: net/pms/PMS :
Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
zabadoh
Posts: 4
Joined: Wed May 07, 2014 10:01 am

Re: Java Virtual Machine Launcher - A Java exception has occ

Post by zabadoh »

I found this earlier thread from January 2014, viewtopic.php?f=9&t=1568&p=9311&hilit=x64#p9311

Per the suggestions in the thread, I've been playing around with setting the heap size by creating a system variable "_JAVA_OPTION" and setting it to "-Xmx768" but still no luck getting it to work.

Other java-based programs installed on the same machine such as JDownloader aren't having any problems.

According to this posting, http://stackoverflow.com/questions/2248 ... rsion-52-0 the specific problem might have something to do with cross compilation options
User avatar
Optimus_prime
Posts: 678
Joined: Fri Jun 01, 2012 6:39 pm
Location: Sydney, Australia

Re: Java Virtual Machine Launcher - A Java exception has occ

Post by Optimus_prime »

You downloaded UMS directly from the Sourceforge page here?
How Ask For Support
Remember, Debug Log's Can/Will Help and Explain your issues, we're not mind reader's but here to help
OS's I Use And Can Assist With: Windows 7/8, Mac OS-X 10.8 & 10.9
Mac OS-X Java 7 Builds Mac OS-X Java 7 Forum
Post Reply