Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8024281 [macos] stop relying on Apple's JavaVM Frameworks
  3. JDK-7131356

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

XMLWordPrintable

    • b125
    • generic
    • os_x

        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.

          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

              bchristi Brent Christian
              bchristi Brent Christian
              Votes:
              1 Vote for this issue
              Watchers:
              17 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: