Re: Location of .jar files?
Re: Location of .jar files?
- Subject: Re: Location of .jar files?
- From: Simon Wright <email@hidden>
- Date: Sun, 20 Jan 2002 19:58:33 -0500
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