I'm running in 5.0, but the basic idea is the same and I think works in 4.0. Open up the preferences screen for WSAD (not an ind project) and select java -> installed JREs. This is where you should be able to change the JRE you wish to useto the Sun provided SDK
RP
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
a bit of art, as a gift, the permaculture playing cards