using ant: class file has wrong version 49.0, should be 48.0
I'm using the command "ant ear" and getting this error:
bad class file: className.java
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath
From what I've read online, this specifically happens when you compile something on v1.5.0 and try to run it on v1.4.2. But here's the thing, my computer had 1.5.0 installed, but I deleted it earlier. Now, I don't have 1.5.0 jdk or jre installed. I also cannot find any reference of it on my machine (not on my drive, also not in environment variables).
So, I'm thinking the command "ant ear" should use my 1.4.2 since it's 1) the only jdk installed, 2) in the environment variables as my java home, and 3) it's what the code was originally written and compiled in.
Does anyone have any ideas on this?
Thanks,
Amber

