score:1

there are many ways to achieve what you want. but just to add some options, you can achieve it without modifying the default java version.

you can use the

-vm
/path/to/jdk7/bin/java

here you can see more examples http://wiki.eclipse.org/eclipse.ini.

the file is in /opt/eclipse/eclipse.app/contents/macos/eclipse.ini (note that my eclipse installation is in /opt/eclipse).


Related Query

More Query from same tag