Bug #6618
open
Make production morpho work on Java 7
Added by Jing Tao almost 10 years ago.
Updated over 9 years ago.
Description
Currently, the production Morpho only works on java 6. We should modify the izpack configuration to make it work in java 7.
I don't know why jarBundler can't work. I have to use appbundler to make it work:
http://stackoverflow.com/questions/14806709/application-is-using-java-6-from-apple-instead-of-java-7-from-oracle-on-mac-os-x
<target name="macjarbundler" depends="install">
<taskdef name="jarbundler"
classpath="${morpho.basedir}/lib/appbundler-1.0.jar"
classname="com.oracle.appbundler.AppBundlerTask"
onerror="ignore" />
<echo message="Using morpho args: ${morpho.args}"></echo>
<!-- name="morpho"
stubfile="${morpho.basedir}/installer/build/mac/JavaApplicationStub"
mainclass="edu.ucsb.nceas.morpho.Morpho"
icon="${morpho.basedir}/lib/DesktopIcon32x32.icns"
vmoptions="-Xmx1024m Xss5m"
arguments="${morpho.args}">
<jarfileset dir="${build.lib}">
<include name="*.jar" />
</jarfileset>
</jarbundler> ->
<jarbundler outputdirectory="${morpho.basedir}/"
name="morpho"
displayname="morpho"
identifier="com.oracle.javafx.swing.Test"
shortversion="1.0"
icon="${morpho.basedir}/lib/DesktopIcon32x32.icns"
applicationCategory="public.app-category.developer-tools"
mainclassname="edu/ucsb/nceas/morpho/Morpho">
<!--
<classpath dir="${build.lib}">
<include name="*.jar" />
</classpath>
<option value="-Dapple.laf.useScreenMenuBar=true"/>
</jarbundler>
</target>
Also available in: Atom
PDF