Hi all,
I am trying to run an application and the error that I get is as
follows:
Exception in thread "main" java.lang.UnsupportedClassVersionError:
javax/xml/transform/TransformerException (Unsupported major.minor
version 48.0)
at java.lang.ClassLoader.defineClass0(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.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)
at nct.front.NCTUserFront.setInputParams(NCTUserFront.java:74)
at nct.front.NCTCLIFront.validateInput(NCTCLIMain.java:216)
at nct.front.NCTCLIMain.main(NCTCLIMain.java:32)
I dont have any clue what this problem is about.
Please help me asap.
Thanks in advance.
regards,
ASD
Thomas Weidenfeller - 22 Jun 2005 11:25 GMT
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> javax/xml/transform/TransformerException (Unsupported major.minor
> version 48.0)
Your VM is older than the compiler (a Java 1.5 compiler) which was used
to compile the class. Check if you don't have an old VM in your path by
accident.
> Please help me asap.
Usenet is not the place to go if you need well defined response times.
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
Skip - 22 Jun 2005 14:39 GMT
> > Exception in thread "main" java.lang.UnsupportedClassVersionError:
> > javax/xml/transform/TransformerException (Unsupported major.minor
[quoted text clipped - 3 lines]
> to compile the class. Check if you don't have an old VM in your path by
> accident.
I'm quite sure java 1.4 has 48.0 and java 1.5 has 49.0, so he must be
running something like 1.1, 1.2 or 1.3, while loading 1.4 classes.
Thomas Weidenfeller - 23 Jun 2005 08:19 GMT
> "Thomas Weidenfeller" <nobody@ericsson.invalid> wrote in message
>>Your VM is older than the compiler (a Java 1.5 compiler) which was used
[quoted text clipped - 3 lines]
> I'm quite sure java 1.4 has 48.0 and java 1.5 has 49.0, so he must be
> running something like 1.1, 1.2 or 1.3, while loading 1.4 classes.
Oh, it looks as if I have lost track of the class file formats
somewhere. For whatever reason I thought 1.4 had 46.0. Anyhow, I think
we agree that the OP runs a VM which is to old for his classes.
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
RC - 22 Jun 2005 14:29 GMT
> I am trying to run an application and the error that I get is as
> follows:
>
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> javax/xml/transform/TransformerException (Unsupported major.minor
> version 48.0)
Because you compiled Your.java with Java 1.5 and you
port Your.class to other machine. That machine has installed
Java 1.4.x only.
So you need to compiled with -source option
javac -source 1.4 Your.java
Then you can run Your.class in both machines.
Or upgrade all your machines to Java 1.5
Roedy Green - 22 Jun 2005 18:49 GMT
>Exception in thread "main" java.lang.UnsupportedClassVersionError:
see http://mindprod.com/java/runerrormessages.html
The solution is uninstall all your jdks, remove vestiges and start
over reinstalling is ascending order.

Signature
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes