Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Where is the JDK install so Qt can see it?[SOLVED]
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 4 Posters 10.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kloveridge
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Mine is a bit old but:

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

      works

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Q139
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kloveridge
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          1
          • douywD Offline
            douywD Offline
            douyw
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved