Search code examples
javacompatibilityjava-7

Am I going to have problems if I try to use classes I wrote using jdk7 on jdk6?


I do plan to check the API and make sure that I am only using jdk6 libraries but a couple of compatibility posts on here have made me a bit nervous.

I need to upload some files onto a jdk6 computer but I run eclipse with jdk7 on mine and I do not have time to check if the files will compile. I need them to be able to compile. Is there something I can do to avoid trouble?


Solution

  • In eclipse, use the JDK compliance property. Right click on a project, Java Compiler -> Compiler compliance level -> 1.6