Reputation: 36399
Is there a way to build my app using one version of the JRE but have my source conform to another version?
I would like to debug my app locally using 1.6 because OS X's 1.6 is much better than 1.4.2, but because of backwards compatibility reasons we actually ship using 1.4.2.
Upvotes: 1
Views: 1021
Reputation: 1636
Or can change your Run configuration, but you can also change your project properties to do this too so any class you decide to run will do this.
Upvotes: 2
Reputation: 59225
You can manage this though the Run Configurations options. Create a new Run Configuration --> Java Application and then you can specify the JRE you want to use for that configuration.
Upvotes: 6