How use jarbundler to create an .app from JPortsUI.jar?
Murray Eisenberg
murrayeisenberg at gmail.com
Mon Apr 28 12:23:02 PDT 2014
I get no error if I use:
ant -lib /opt/local/share/java -buildfile build.xml
However, I don't find afterward any JPortsUI.app. (Creating that was the whole point.)
In case it's relevant:
(i)"echo $ANT_HOME" gives empty response.
(ii) I have no $HOME/.ant/lib (presuming that $HOME refers to the value I get from "echo HOME", namely, the path to my user directory).
(iii) The value from "echo $CLASSPATH" is:
:/Library/Java/Extensions/mysql-connector-java-bin.jar:/Volumes/MacHD/Users/murray/Library/texmf/texhyphj
On Apr 28, 2014, at 2:56 PM, Jeremy Lavergne <jeremy at lavergne.gotdns.org> wrote:
> According to ant.apache.org/manual/running.html
> All JARs in $ANT_HOME/lib were added to the $CLASSPATH automatically, and perhaps now also $HOME/.ant/lib
>
> Ant further takes the -lib argument for passing further specific paths.
>
> Does setting the path to the missing class solve the issue?
>
> On Apr 28, 2014, at 14:48, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
>
>> OK, so I changed build.xml to:
>>
>> <?xml version="1.0"?>
>> <project name="JPortsUI">
>> <taskdef name="jarbundler"
>> classname="net.sourceforge.jarbundler.JarBundler" />
>> </project>
>>
>> Now running "ant build.xml" gives a different error:
>>
>>
>> Buildfile: /Users/[myuserdirname]/jPorts/build.xml
>>
>> BUILD FAILED
>> /Users/[myuserdirname]/jPorts/build.xml:4: taskdef class net.sourceforge.jarbundler.JarBundler cannot be found
>> using the classloader AntClassLoader[]
>>
>> I don't know where the MacPorts apache-ant port is supposed to put that unfound file.
>
---
Murray Eisenberg murrayeisenberg at gmail.com
503 King Farm Blvd #101 Home (240)-246-7240
Rockville, MD 20850-6667 Mobile (413)-427-5334
More information about the macports-users
mailing list