0

Receiving this error while trying to run J2EE application under Java 1.4, Tomcat 5.0

Error:

**java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main (Unsupported major.minor version 49.0)**

I have compiled the code with Jdk 1.4.2 and java 1.4 under eclipse

i need to run this application under Java 1.4 and Tomcat 5 only, what am i missing here. is some thing wrong with my j2SDK 1.4.2? where can i download a fresh copy of jdk 1.4.0?

Jeba Prince
  • 1,669
  • 4
  • 22
  • 41

2 Answers2

1

Have a look here - your problem is a class compiled with JDK5 as target version, and that won't run under JDK1.4. Figure out which class/jar and recompile with JDK1.4 and you're good to go.

Cheers,

Community
  • 1
  • 1
Anders R. Bystrup
  • 15,729
  • 10
  • 59
  • 55
1

Move away from Java 1.5 and Tomcat 5.0 right now. They are both dead for years. You are leading yourself into trouble.

Michael-O
  • 18,123
  • 6
  • 55
  • 121