I did not test it myself, but after looking for what I found.
Distributing a Java application for distribution on a Mac gives you a basic look at how to bundle an application (which looks like you already have). From there I followed the docs for the app bundler , on this page in the runtime section you see that You can explicitly include or exclude files / folders from the set.
According to their documents
"By default, only the contents of the jre/ directory will be included with the bundled application. All executable content (ie bin/, jre/bin/) is excluded. Additional content can be included or excluded using nested <include> and <exclude> elements, respectively."
I took my sample code from this and added an exclude statement:
<-- Import environment variables --> <property environment="env"/> <-- Define the appbundler task --> <taskdef name="bundleapp" classname="com.oracle.appbundler.AppBundlerTask"/> <-- Create the app bundle --> <target name="bundle-swingset" depends="package"> <bundleapp outputdirectory="." name="Test" displayname="Test" identifier="com.oracle.javafx.swing.Test" shortversion="1.0" applicationCategory="public.app-category.developer-tools" mainclassname="com/javafx/main/Main"> <runtime dir="${env.JAVA_HOME}"> <exclude name="Java IDL Server Tool" /> </runtime> <classpath file="${user.home}/bin/javafx-samples-2.2.0/SwingInterop.jar"/> <option value="-Dapple.laf.useScreenMenuBar=true"/> </bundleapp> </target>
A complete list of optional exceptions can be found in the JRE root directory - $JAVA_HOME/README.txt . Do a search for the text Optional Files and Directories , and you will be taken to its title. I am looking at installing JRE7 on my computer, the JRE6 readme seems to have nothing.
I know this does not work on the example you are looking for, but I hope this helps you figure it out.
ug_
source share