appbundle
Terry Warren
terry at trwarren.com
Sun May 5 12:11:37 PDT 2013
Hi -
I am trying to do something that I thought would be very simple: create a mac os x app bundle using the oracle appbundler-1.0.jar file. The project was created and built via Netbeans IDE with the appbundler jarfile copied into a directory named libs in the main project directory along with a simple .xml script based on the documentation for using the appbundler. I am using the latest oracle jdk for mac and mac os x version is 10.8.3. When I run the script (either via commandline after changing into the project directory) or via Netbeans IDE, it fails with the message:
taskdef A class needed by class com.oracle.appbundler.AppBundlerTask cannot be found: org/apache/tools/ant/Task
using the classloader AntClassLoader[/Users/twarren/NetBeansProjects/Sample2/libs/appbundler-1.0.jar]
(the directory listed above in the second line is the correct one for the jarfile)
The script is (located in file bundleApp.xml):
<project name="AppBundle" default="default" basedir=".">
<description>Builds app Bundle for project Sample2.</description>
<taskdef
name="bundleapp"
classname="com.oracle.appbundler.AppBundlerTask"
classpath="libs/appbundler-1.0.jar" />
<target name="bundle">
<bundleapp outputdirectory="${user.home}/Desktop/Builds"
name="PuzzleViewer"
displayname="Java Puzzle Viewer"
identifier="sample2.JPuzzleViewer"
shortversion="1.2.5"
copyright="Copyright 2013 - Terry Warren. All rights reserved."
applicationCategory="public.app-category.puzzle-gamess"
icon="${user.home}/Desktop/builds/icons/puzzleviewer/puzzleviewer.icns"
mainClassName="sample2/JPuzzleViewer">
<classpath file="dist/Sample2.jar"/>
<option value="-Dapple.laf.useScreenMenuBar=true"/>
</bundleapp>
</target>
</project>
command line invocation: ant -f bundleApp.xml bundle
I would appreciate any thoughts as to why this won't work.
thanks
Terry Warren
More information about the macosx-port-dev
mailing list