Is there any way to run class files (i.e. with main as entry point) on JDK 6 that were compiled with Java 5?
Yes. Old java code can be executed on new JVMs, but not vice versa.
Everything will be fine.
Of course this should work without issue. Why are you having a problem? Be more specific.