Project

General

Profile

Bug #6618

Make production morpho work on Java 7

Added by Jing Tao almost 5 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
11/12/2014
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

Currently, the production Morpho only works on java 6. We should modify the izpack configuration to make it work in java 7.

History

#1 Updated by Jing Tao almost 5 years ago

  • Assignee set to Jing Tao

#2 Updated by Jing Tao over 4 years ago

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>
<!--<jarbundler dir="${morpho.basedir}/"
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">
<!--<runtime dir="/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home"/>-->
<classpath dir="${build.lib}">
<include name="*.jar" />
</classpath>
<option value="-Dapple.laf.useScreenMenuBar=true"/>
</jarbundler>
</target>

Also available in: Atom PDF