Maybe there's more than one Java in your PATH as mentioned in this post <http://stackoverflow.com/questions/26450420/osx-10-10-and-eclipse-luna-own-app-crashes-when-started-from-inside-eclipse>
Try to "export" the correct Java 6 as suggested in the answers.
