File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes  plz tell me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark " plz tell me" Watch " plz tell me" New topic

plz tell me

satwant singh

Joined: Dec 02, 2008
Posts: 6
ihve made a class "welcome" it was running on jdk1.3 but last night i installed jdk1.6.0 after unistalling jd1.4 then following error came at run time

Exception in thread "main" java.lang.UnsupportedClassVersionError: welcome
(Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at Source)
at Source)
at$100(Unknown Source)
at$ Source)
at Method)
at 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

then again i install jdk1.4 and set the path
of c:\programfiles\java\jdk1.4\bin;c:\programfiles\java\jdk1.6.0\bin;
then the code run successfully

why so
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63867

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.

[Asking smart questions] [About Bear] [Books by Bear]
Aum Tao
Ranch Hand

Joined: Feb 14, 2006
Posts: 210
It's not clear from your question whether you had JDK 1.3 of JDK 1.4 initially. This error is usually indicative of the fact that you have more than one java versions involved. You might want to check it with

And, remove any additional JDKs.

SCJP 1.4 85%
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46410
And please don't write p-l-z: read this FAQ.
I agree. Here's the link:
subject: plz tell me
It's not a secret anymore!