1 Reply Latest reply: Aug 12, 2013 11:52 AM by user960521 RSS

    DataModeler 4 MacOS Java 7 Home

    user960521

      The Oracle Data Modeler 4 launcher.sh script correctly looks at the environment variable JAVA_HOME to find a JRE/JDK.

       

      However, the datamodeler-Darwin.conf file has the following path set explicitly - therefore resulting in datamodeler looking at java 6 even though java 7 is installed and JAVA_HOME is correctly set

      SetJavaHome /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

       

      The quickest solution to get this working and make datamodeler automatically detect the correct JRE is to

      simply comment/remove the above SetJavaHome line from datamodeler-Darwin.conf

      And everything will work fine.

       

      I hope the future releases will not have this path set explicitly in the darwin conf file.

       

      File Paths:

      OracleDataModeler.app/Contents/Resources/datamodeler/ide/bin/launcher.sh

      OracleDataModeler.app/Contents/Resources/datamodeler/datamodeler/bin/datamodeler-Darwin.conf

        • 1. Re: DataModeler 4 MacOS Java 7 Home
          user960521

          just realized that it works if opening from the shell as

               $open /Applications/OracleDataModeler.app/

           

          and not when clicking on the app from finder directly.

          options may include

          1. updating the plist file

          2. set the path in datamodeler-Darwin.conf

          3. add the following file to OracleDataModeler.app/Contents/MacOS/datamodeler.sh

          export JAVA_HOME=$(/usr/libexec/java_home)

          4. other...

           

          Message was edited by: user960521