My Mac is a fresh install of OS X. I also downloaded the latest ADT (Android Developer Tool)
I downloaded Java 7u51 Developer Kit and installed it. I launched Terminal and typed
java -version
I get the following output
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
I know that Java is installed so I launched Eclipse.app but it was asking to install Java 6.
Then I used Terminal to navigate to the path of the eclipse folder and typed
open Eclipse.app
Output
LSOpenURLsWithRole() failed with error -10658 for the file /Applications/adt-bundle/eclipse/Eclipse.app.
Then when I did this
cd Eclipse.app/Contents/MacOS/ open eclipse
It worked without any issues. However I would rather not use Terminal to launch Eclipse. Is there any workaround of fix to prevent me from installing Java 6?