I have updated to Yosemite today and have much problems with java. Most java applications crashes on start but after reinstall of the old Mac-Java 1.6 that problem seems to
After I re-installed using http://support.apple.com/kb/DL1572 I had two JDK 1.6 versions in the system.
1 (-462) was used by Eclipse. It gave the same error as you have.
2 (-466) was used from command line. That one worked.
So I changed the "Installed JREs" in the Eclipse preferences so it pointed to number 2 (-466). After that everything worked fine.
/Martin