web stats
mirth CLI causes Java Error Exceptions - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 12-11-2011, 02:38 PM
baziz baziz is offline
OBX.1 Kenobi
 
Join Date: Dec 2007
Posts: 41
baziz
Default mirth CLI causes Java Error Exceptions

Hi,

Please look at the output below.
Why is this happening.
I have Oracle Java SE 6.0 installed on my Windows XP Pro.

C:\mirth-1.8.1.4211>java -jar shell-launcher.jar shell-launcher.xml -a https://myhostip:8443 -u mirthCLI -p mirthCLI -v 0.0.0
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/webreach/
mirth/server/launcher/ShellLauncher (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n 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.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 java.lang.ClassLoader.loadClassInternal(Unknown Source)




C:\mirthCLI-2.1.1.5490\Mirth Connect CLI>java -jar mirth-cli-launcher.jar -a https://myhostip:8443 -u mirthCLI -p mirthCLI -v 0.0.0
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/mirth/con
nect/cli/launcher/CommandLineLauncher (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n 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.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 java.lang.ClassLoader.loadClassInternal(Unknown Source)



Thanks,
Baziz
Reply With Quote
  #2  
Old 12-13-2011, 09:50 AM
geraldb geraldb is offline
Mirth Employee
 
Join Date: Aug 2006
Location: Irvine, CA
Posts: 314
geraldb is an unknown quantity at this point
Default

Hi Baziz,

Can you provide the output from running the java -version command?
__________________
Gerald Bortis | Chief Information Officer | Mirth Corporation
Reply With Quote
  #3  
Old 12-18-2011, 01:22 PM
baziz baziz is offline
OBX.1 Kenobi
 
Join Date: Dec 2007
Posts: 41
baziz
Default I resolved the problem

The Windows computer did not have the correct Path, CLASSPATH, and JAVA_HOME envirnment variables. The path was pointing to an older version of Java JRE.

I corrected the envirnment veriables to point to the correct path for Java JRE version 6.

thanks,
baziz

Last edited by baziz; 12-19-2011 at 01:47 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:59 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation