Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JarBundler / Ant - output unknown....



I generally don't use ant, but one thing I noticed is what I THINK is a typo:
<jarbundler dir="./MyDir/Build" verbose="true"


and:

jar="/MyDir/Build/Mac_Run.jar"

In the first line above you're referencing a file with respect to what I'm guessing is your build directory, in the second, you referencing a directory of the root directory since it isn't preceded by a period.



xxxx xxxx wrote:
ok. I have newbie questions here for you mac experts!!

Im developing on Mac OS 10.3.9 with java 1.4_2.

I have ant "working", and I am simply trying to use jarBundler to bundle my jar file into a .app file so that clearly I can make file associations, and assign a mac-like icon.

the weird thing is that now when I run the ant file (ant -buildfile build.xml), it is reported that my file is "Successfully Built".

Only there is no .app file for my application on my entire computer! I did have to work through some initial errors in my build.xml file, but I solved all of those issues, and now it runs without errors. But Successfully Built? I dont think so...

here is my build.xml file, please let me know what you suggest!
my directory structure is something like...
Ant_Home/bin/MyDir/Build/

     -  - - -  -
<project name="My App" >

<target name="simplexxx" description="Make Stuff">

<taskdef name="jarbundler"
classpath="./jarbundler-2.0.0.jar"
classname="net.sourceforge.jarbundler.JarBundler" verbose="true" />

<jarbundler dir="./MyDir/Build" verbose="true"
name="MyApp"
mainclass="MyApp.MyClass"
jar="/MyDir/Build/Mac_Run.jar"
icon="icons/macIcons.icns"
version="0" />

</target>
</project>

------------------------------------------------------------------------
From: email@hidden
To: email@hidden
Date: Mon, 1 Sep 2008 16:35:32 -0400
Subject: JarBundler / Ant - where is the output?

hi fellow java developers!

I finished an application and I am trying to launch it on the mac. Now I finally got it working on the OS, and now I wanted to make it look a bit more "native" by being an .app file.

i used Ant, with jarBundler - and after running a build, it states "build successful" only I don't know where to find the outputed file!

Perhaps there is no output? But since Im using jarbundler - it states that it would output a .app file - which appears to be either not being built, or put somewhere where I dont know where it is.

Any thoughts?

(Im a mac newb, and I cannot use xcode due to using 10.3.9 system)

Thanks!

------------------------------------------------------------------------
Get ideas on sharing photos from people like you. Find new ways to share. Get Ideas Here! <http://www.windowslive.com/explore/photogallery/posts?ocid=TXT_TAGLM_WL_Photo_Gallery_082008>


------------------------------------------------------------------------
Talk to your Yahoo! Friends via Windows Live Messenger. Find Out How <http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008>


------------------------------------------------------------------------

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Two menu function differences when useScreenMenuBar set (From: Bob Jacobsen <email@hidden>)
 >Re: Two menu function differences when useScreenMenuBar set (From: Mike Swingler <email@hidden>)
 >JarBundler / Ant - where is the output? (From: xxxx xxxx <email@hidden>)
 >JarBundler / Ant - output unknown.... (From: xxxx xxxx <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.