I'm running this application on Windows Server 2003 with jre 6 installed. After adjusting the .bat file, I am getting errors when the Java application is running. Below is what is output in the command line. Any ideas for resolving the issue?
Exception in thread "main" java.lang.UnsupportedClassVersionError: me/mabra/winraidmonitor/WinRaidMonitor : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
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$000(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)
Could not find the main class: me.mabra.winraidmonitor.WinRaidMonitor. Program will exit.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm running this application on Windows Server 2003 with jre 6 installed. After adjusting the .bat file, I am getting errors when the Java application is running. Below is what is output in the command line. Any ideas for resolving the issue?
Can you confirm that you use the latest Oracle Java JRE from java.com?
Updating to JRE7 fixed the issue. I guess it doesn't work with JRE6.
Glad to hear it's working for you now.