I have 2 issues:
1. I tried to bundle the Oracle JRE 1.7 with my java product. However, when selecting the main JRE folder, it gives the error "The Mac OS JRE bundle must contain the 'Contents/Home/jre/lib/jli/libjli.dylib' library." The directory for the JRE is actually the following for that library: "Contents/Home/lib/jli/libjli.dylib". The expected directory structure is found with the JDK. I went ahead and used the JDK folder, but the result is a zip file that is 140MB vs. 50MB - since it's bundling the entire JDK. So ideally the program should work w/ the JRE structure that ships with the Oracle JRE, or if we do need to point to the JDK, then it should only bundle the JRE, and not the entire JDK directory.
2. When I am running the Contents/MacOS/JavaAppLauncher, it doesn't seem to be using the bundled JRE. I have also installed the JRE and JDK on the Mac and it doesn't seem it pick that up either. When I run the command "java -jar myapp.jar", it works as expected. However, when run using the launcher it doesn't seem to use the right java version. I need to use Java 1.7 and not Apple's 1.6 version. BTW, I have it working correctly with the launcher on Windows, it's just not working on the Mac.
Can you help!
Thanks,
Rajat
FOLLOW US
Get the latest news in Application Packaging