Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2005

Tip: Looking for answers? Try searching our database.

strange exception

Thread view: 
asd - 22 Jun 2005 11:03 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.