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
When my mac crashed and was replaced (keeping the hard drive) my Eclipse had a couple issue to work out. Among them was some of my projects were referring to 1.6 when in fact I had updated to 1.7 and the project needed to refresh this setting.
Right click project->properties->Java Build Path->Libraries->Add Library->JRE System Library
The System will find the installed JRE and make it the default. Remove the old JRE and run the application.