Community Forums
Results 1 to 3 of 3

Thread: MacOSX and JRE 1.7, how to bundle VM ?

  1. #1
    Join Date
    Nov 2013
    Posts
    2

    Question 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/selfse...13810&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

  2. #2
    Join Date
    Dec 2012
    Posts
    31
    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 <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

    Thanks,
    Utsab

  3. #3
    Join Date
    Nov 2013
    Posts
    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_

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •