java Yosemite

Discussion in 'OS X Yosemite (10.10)' started by perlsyntax, Oct 27, 2014.

  1. perlsyntax macrumors 6502

    Joined:
    Jan 10, 2014
    #1
    Why i try to install eclipse with android plugin i get a build error and look up to see what java i have java 6 is missing but not java 7 is this odd or a bug?

    And i try android studio sometimes i am missing java 7 in android studio?
     
  2. dusk007, Oct 27, 2014
    Last edited: Oct 27, 2014

    dusk007 macrumors 68040

    dusk007

    Joined:
    Dec 5, 2009
    #2
    That is normal. Old OSX versions I think just came with Java 6 and everything else one could install themselves.
    Yosemite doesn't have the 6 anymore and if you install 8U25 now you have only that.
    Here you can download it and install 6 again if you need it.
    You can also go setup the symlinks in versions folder again.

    cd /System/Library/Frameworks/JavaVM.frameworks/Versions

    set up the symlinks with folder names 1.6.0 and so on to the location of the jdk. I would set the currentJDK to the 1.8. No reason not to use that on default.

    JDK 8 installs to /Library/Java/JavaVirtualMachines/
    JDK 6 you find in /System/Library/Java/JavaVirtualMachines/
    Don't ask me why but that is where they ended up on my MBP.

    BTW I almost forgot you can run AndroidStudio with Java 8 and in my experience it works well enough and text rendering is sharper.
    Go to the Applications folder -> click Android Studio -> show package contents
    navigate to Contents and click info.plist
    on the bottom under JVMOptions go to JVMVersion and replace the "1.6" with "1.8*".
    Start Android studio and check out how different it looks.
     
  3. perlsyntax thread starter macrumors 6502

    Joined:
    Jan 10, 2014
  4. dusk007 macrumors 68040

    dusk007

    Joined:
    Dec 5, 2009
    #4
    There is apperantly some unfixed bug that isn't there with Java 6 which is why they run it on 6 per default.
    Only crashed on me twice in 2 months and all my work was saved. Considering it is still a beta product that is actually not bad even with Java 8.
    I take the crashes for how well the rest runs under java 8 any day. Just try it out, you can always change it back. Just type in 1.6 again, save and restart the app. I like it more under java 8 than 6 and the compiling and every function I tried works just fine. I don't know how exactly one can replicate the bug that crashes the client. But it just a UI crash. Restart the app and continue where you left of, it is not a huge deal.
     

Share This Page