Page 1 of 1

using xml editor

Posted: Wed Nov 30, 2011 4:25 pm
by lsa
Hi,

I am trying to run the XML editor in the virtual machine. I installed the latest version JAVA v1.6.0_22 and configured the env variables (JAVA_HOME and PATH). When I rum "xmled", I got the following error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: pro/cat3/xml/viewer/ProXmlJTreeFrame : 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: pro.cat3.xml.viewer.ProXmlJTreeFrame. Program will exit.


Can anybody help on this?
Thanks a lot!

Re: using xml editor

Posted: Thu Dec 01, 2011 8:14 pm
by kbisanz
You might have already done this, but try rebuilding the java code:

Code: Select all

$> cd $ADL_HOME/java
$> ant clean
$> ant
And then try starting the XML editor again.

Additionally, execute
$JAVA_HOME/bin/java -version
and verify it's the expected version.

Re: using xml editor

Posted: Mon Dec 05, 2011 9:57 am
by lsa
Thanks, Kevin,
It works now.
I think the reason is "ANT_HOME" was not correctly setup.

Re: using xml editor

Posted: Thu Mar 26, 2015 4:11 am
by BobHairston
I had same error. Thanks admin for you comment.

Re: using xml editor

Posted: Mon Jul 20, 2015 2:24 am
by bizzrisea431
Actually, I am learning XHTML but have been advised to use an XML editor. I would prefer a good freeware for learning initially and then throw a few dollars down for something else later.

Re: using xml editor

Posted: Wed Oct 12, 2016 10:08 pm
by hicked11
Worked fine for me!