Bad class file error

Hi

I set my java home to JDK 1.4 and execute my build.It is ok.

Then i try the same by setting JDK 1.5 as java home. build is ok.

But now i need to use only JDK 1.4.So i set my java home as jdk 1.4 and try to execute the build.xml

Now i got the error of class file has wrong version 49.0, should be 48.0

I understand that the class files(49.0) which are created by JDK 1.5 and i try to execute those by JDK 1.4.

But i donot knwo how to solve this.

Will anybody please help me to solve?

Thank you

[551 byte] By [bhuvana_screena] at [2007-11-27 11:21:51]
# 1

> But i donot knwo how to solve this.

Well, you should. *You* know which code you're compiling and running with which JDK. We don't. It might also be possible that some of the libs you use are Java 1.5. I can't tell, because I don't know the exact point when the error appears.

CeciNEstPasUnProgrammeura at 2007-7-29 14:51:28 > top of Java-index,Java Essentials,Java Programming...
# 2

Hi

I didnot compile java files with JDK 1.4 and 1.5 both.

First time i use JDk 1.4. for all java files

Second time i use JDk 1.5 for all java files.

Finally i should use JDK 1.4. So i come to jdk 1.4 and set java home jdk 1.4 and exucute my build.xml. Then i got the bad class file error.

Can u help me at this point?

Thank you

bhuvana_screena at 2007-7-29 14:51:28 > top of Java-index,Java Essentials,Java Programming...
# 3

> Can u help me at this point?

>

noone can help you if you're incapable of helping yourself with the thousands of answers already provided to this exact question over the last decade here and elsewhere.

jwentinga at 2007-7-29 14:51:28 > top of Java-index,Java Essentials,Java Programming...