View Full Version : MacOSX and JRE 1.7, how to bundle VM ?

11-04-2013, 08:51 AM

Why it is not possible to bundle a VM for MacOSX and Java 1.7 ? The checkbox "with VM" is disabled on the Build-Targets-Page, but in the "known issues"-Page of Installanywhere 2013 there are some threads about "If you build an installer for OS X–based systems and JRE 1.7 is bundled with the installer,..." ( IOA-000082544 - http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=Q213810&sliceId= ).

We ve got a problem with the automatically search of a JRE 7. Installer allways say "Unable to find JRE7 to launch" and stops. To avoid this problem you ve to install a JDK 1.7. Then InstallAnywhere 2013 - Installer for MacOSX with the Option "Search for Oracle JRE 1.7" works correct.

Where is my fault ?


11-05-2013, 01:13 AM

Follow the below steps to create VM Pack manually for Mac OS X.

1. Create vm.properties file with the following contents.

vm.name=Oracle JRE 1.7 MacOSX

2. Give full permission to vm.properties
3. Copy the jre folder from <JAVA_INSTALL_DIR>.
4. Give full permission to the entire jre folder

cmd> chmod -R 777 jre/

5. zip jre folder.

cmd> zip -r jre.zip jre/

6. Give full permission to jre.zip and rename the above created file jre.zip to vm.zip

cmd> chmod 777 jre.zip
cmd> mv jre.zip vm.zip

7. jar vm.properties and vm.zip.

cmd> jar -cvf OracleJRE170u40.vm vm.properties vm.zip


11-05-2013, 10:00 AM
Thank you for your answer.

Now the checkbox "with VM" for MacOSX is active and i can generate an MacOSX-Installer with VM. We will test it on an MacOSX without JDK 1.7.

greets Michael_