Forcing Java 1.7 compliance

I need my program to work on Java 1.7. I have built it with 1.8 in mind. I dont know how to tell if it would work with 1.7. Can you tell me how to do that? I’m using Eclipse if that has something that could help. Thanks!

I think this will do the trick. Project > Properties

I don’t know if that’s a requirement for you, but if you have dependencies to other libraries, you have to ensure that those are Java 1.7 compatible as well. Afaik does the project SDK only matter for things you compile by yourself. If you use Maven, there’s a enforcer rule for bytecode compatibility. Maybe this aspect does’t touch you at all, I don’t know.