Where is the JDK install so Qt can see it?[SOLVED]



  • I am installing he development tools for Android. Everything was pretty straight forward til I got the JDK. I install it. It doesn't give me any indication where it put the folder.

    The only thing I can find is on my root harddrive in Library I see:

    Java/JavaVirtualMachines/jdk1.8.0_31.jdk/

    But when I point Qt JDK location to it, it says:

    "/Libary/Java/JavaVirtualMachines/jdk1.8.0_31.jdk" does not seem to be a JDK folder.

    I can find any other folder on my drive. So where is it?


  • Lifetime Qt Champion

    Hi,

    Mine is a bit old but:

    @/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home@

    works



  • Try subfolders in jdk folder , 1.8 might not go that far.



  • SGaist,
    Again. You magnificient bas!@#. Whatever they are paying you, double it!

    Your answer was correct. Its a little confusing when installing all the stuff for android that the only folder that doesn't decompress into an obvious folder is the JDK. I install the JDK and it says, "installed!" and thats it. Seems like Qt could be a little more helpful in finding it.



  • This thread had been marked [sovled]. My previous configuraton is similar to the above mentioned. But it does not work for me any more. I post an easy way here. It may help others.

    You can run the following command to get where the java home is.

    $ /usr/libexec/java_home
    

    In my case , it looks like this:

    $ /usr/libexec/java_home
    /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home
    

    The previous path begins with /System. The new one not.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.