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.