Re: Location of .jar files?
Re: Location of .jar files?
- Subject: Re: Location of .jar files?
- From: Aaron Tuller <email@hidden>
- Date: Sun, 20 Jan 2002 18:16:51 -0800
I can answer that one. Just make a new "Copy Files" build phase for
your target (it's under the project menu i beleive). Add the jar
files to your target, maybe in Resources, then when you edit that new
build phase, just drag those files in and choose which folder you
want them to go in. This is how can you automagically copy
frameworks into your app too.
-aaron
At 7:58 PM -0500 1/20/02, Simon Wright wrote:
Aaron is understanding my need I think.
Thank you, Andy, for pointing me to your article at cocoadevcentral.
It _was_ useful in that I was able to configure my project so that I
could reference my .jar files. I added one element to my NSJavaPath
array for each .jar file I needed. Then, after building my
application, I had to copy the same files into my
Contents/Resources/Java folder.
So. It works. But every time I build my application I'll have to
remember to copy those files into the right place. Surely, that's
what ProjectBuilder is for? How can I get PB to copy those files
into the right place at build time?
Thanks.
Simon
On Sunday, January 20, 2002, at 03:11 PM, Aaron Tuller wrote:
Your article doesn't say anything about how to specify that the
classpath be inside your app bundle. Although I guess you could at
runtime like you talk about in the Foundation tool section using
[NSJavaVirtualMachine alloc] initWithClassPath:. Does that work in
regular AppKit apps?
Anyway, an example of how to set up NSJavaPath with something like
CurrentTarget.app/Contents/Resources/Java/somejar.jar
would be useful I think.
-aaron
At 7:28 PM +0100 1/20/02, Andreas Monitzer wrote:
On Sunday, January 20, 2002, at 06:50 , Simon Wright wrote:
I have successfully created a test Cocoa/Java app that utilizes
JavaMail to send an email message. Woo hoo!
However, and this will reveal the shallowness of my grasp of the system,
to do so I installed the required .jar files into
Library/Java/Home/lib/ext
Presumably, this means that anyone to whom I send this app must
install those files.
Is there a way of including the .jar files in my application so that I don'
t have to have a custom install?
See my Java Bridge-article at cocoadevcentral.
andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.