views:

165

answers:

1

Hey,

Have a scenario where i need to compile my project with jdk 1.5 but run it with jre 1.6. I can't find a way to switch the jre that is used when running my program. I read something about execution profiles in an earlier version of netbeans, but 6.8 doesn't seem to support this. Any ideas?

Seems easy to do in eclipse.

+1  A: 

You go to project-> properties - > sources ->binary source format and you pick your jdk 1.5 in your case. In libraries you can pick Java Platform

Mite Mitreski