cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Michael_
Level 2

MacOSX and JRE 1.7, how to bundle VM ?

Hello,

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 ?

Michael
Labels (1)
0 Kudos
(2) Replies
UtsabKarmakar
Level 5 Flexeran
Level 5 Flexeran

Hi,

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
vm.platform=mac-osx
vm.platform.flavor=mac
vm.exe.path=Contents/Home/jre/bin/java


2. Give full permission to vm.properties
3. Copy the jre folder from .
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


Thanks,
Utsab
0 Kudos
Michael_
Level 2

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_
0 Kudos