This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I'm sure that I'm being very stupid here, and it's the end of the day, so I'll probably see the problem straight away tomorrow morning, but maybe someone will have a handy pointer...
I've written and built an application, compiling with version 5 of Java (using Eclipse). I've now decided/realised that I actually need it to run with 1.4, so have changed the compiler (in Preferences/Java/Compiler) to 1.4, and added and selected the 1.4.2 JDK (Preferences/Java/Installed JREs).
I got all the compile errors that I expected, and have fixed them all, but now when I try to run, I get:
From reading around I see suggestions that the problem is that my code is being built by the 1.5 compiler, but I'm trying to run it with a 1.4 JVM. Makes sense. So - the question is, how do I compile it with the 1.4 compiler? I'd have thought that one/both of the settings I mention above would have done it, but apparently not?
Any help greatly appreciated.
PS - I've tried cleaning the project, to no avail.
Did you check the Java Compiler settings under the Project -> Properties menu?
Joined: Jan 31, 2006
Originally posted by Chris Rudd: Did you check the Java Compiler settings under the Project -> Properties menu?
Thanks for the suggestion - it wasn't that (the 'enable project specific settings' checkbox was not checked), however, it *was* something stupid - I needed to rebuild a jar file that I was using. So much for working late...