I've already seen this thread about it, but after I followed the instructions I got this error when trying to open eclipse
The JVM shared library "/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk"
does not contain the JNI_CreateJavaVM symbol
And this one for AptanaStudio3
Failed to create the Java Virtual Machine.
Any ideas how to fix this? I really don't want to have to install Java 6.