This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
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 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
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
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