Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8024281 Mac OS X: stop relying on Apple's JavaVM Frameworks
  3. JDK-7131356

(props) "No Java runtime present, requesting install" when creating VM from JNI [macosx]

    Details

    • Subcomponent:
    • Resolved In Build:
      b125
    • CPU:
      generic
    • OS:
      os_x

      Backports

        Description

        On some Mac OS machines, if one tries to create Java VM from native executable using JNI, they will get "No Java runtime present, requesting install." message and the program will simply exit. In graphical session, there will be a popup "To open JavaApplication, you need a Java runtime. Would you like to install one now?" "Not now" "Install". DYLD_LIBRARY_PATH is set correctly.

        It seems to depend on whether default Mac OS Java is installed or not (running /usr/bin/java will get same message and popup). I suspect that accepting and installing system Java would fix the issue.

        This is a problem: starting Java VM using another location (even from JNI) should not depend on system Java.

          Attachments

          1. JFileChooserTest.zip
            19 kB
          2. languagelist.c
            2 kB
          3. LocaleTest.java
            2 kB
          4. patch.diff
            8 kB
          5. test.zip
            21 kB

            Issue Links

              Activity

                People

                • Assignee:
                  bchristi Brent Christian
                  Reporter:
                  bchristi Brent Christian
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  16 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: