I'm having problems loading up an Android Studio project I started in Mountain Lion (10.8) and am now trying to run in Mavericks (10.9) but when I open a project Gradle fails with the following error:
Gradle 'SimpleTimeProject' project refresh failed:
/Library/Java/JavaVirtualMachines/1.6.0_43-b01-447.jdk/Contents/Home/lib/security/cacerts (No such file or directory)
I've checked the path listed there, everything exists like it should - but maybe specific certs are missing from the "cacerts" folder? I've looked around and can't seem to find a solution or anyone else running into this issue so I'm not sure where to go from here to resolve it.
I've verified the $JAVA_HOME
environment variable points to a valid location (/Library/Java/JavaVirtualMachines/1.6.0_43-b01-447.jdk/Contents/Home
). This appears to be causing error's to crop up in files that reference the Android SDK packages (not all files that do this, just some) and no view will load in the interface builder. And, of course, I cannot run the project.
Any advice greatly appreciated.
The problem seems to be a bad install of Java 1.6. When you upgrade to Mavericks, you normally have to reinstall Java 1.6 as it's not bundled with the OS as it was in previous OS X releases. See Installing Java on OS X 10.9 (Mavericks) for more details.
My installation of 1.6 on Mavericks gives me a cacerts directory in /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/cacerts
, which symlinks to /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacerts
.
I'm not sure why yours is under /Library/Java/JavaVirtualMachines
instead, but if you're using the same installation of Java you had under Mountain Lion, maybe it didn't get properly uninstalled during the upgrade, and its link to cacerts is now broken.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With