Yosemite have uninstalle my Java 6 installation. And the link for installe Java 6 link to a 404 page. If you have Yosemite and Java 6, have you redownload it ? Where have you find it ?
Edit : I have find the link, Java 6 still work when you reinstalle it. If some people have the same problem : http://support.apple.com/kb/dl1572
Sorry for my quick conclusion.
OS X 10.10 dosn't support Java 6 anymore. The bug need to be fix before the lauch of Yosemite.
In theory it already use the JavaApplicationStub according to the info.plist.