• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Java application packaging questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java application packaging questions


  • Subject: Re: Java application packaging questions
  • From: Joseph Jones <email@hidden>
  • Date: Sat, 9 Aug 2003 09:19:51 -0700

I DO want the jar files in the same path as my class file. I have tried both setting the classpath cl arg and the CLASSPATH env var to the current directory (.) to force the lookup, but to no avail.

When I created the double clickable JAR file using JAR Builder, I explicitly added those two file to the class path. However, the ceated JAR file didn't work for beans.

I could create an appleiscript (or shell script) to do the copy, but that would still require sudo access unless there is a way to put them into the users ~/Library somewhere.

Thanx,
joe

On Saturday, August 9, 2003, at 09:27 AM, Erik Price wrote:


On Saturday, August 9, 2003, at 01:19 AM, Joseph Jones wrote:

I have a small little Java app that I would like to package up and deliver to my customers. Currently, it depends on 2 other jar files for code and those need to be set into the /Library/Java/Home/lib/ext directory for the application to work. I would like to make this as easy as possible for my customers and not force them to drop to the command line and do any 'sudo cp' commands to get this working. Is there anyway for me to set my application up so that, at a minimum, it can find the jar files in the local directory where the main class file is?

A crude workaround might be to provide an AppleScript that can be doubleclicked, which will copy the JAR files into the directory. But why do those JAR files need to be in that particular directory?

If it is to put the contents of the JAR files onto the classpath, a more elegant solution might be to specify the relative path to those JARs in your app's JAR file's MANIFEST.MF. But that might not be why you want those JAR files in that dir, so this suggestion might be irrelevant.


Erik


Joseph Jones
JTech Softworks, Inc. - http://www.jtechsoftworks.com
_______________________________________________
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.

  • Prev by Date: Re: Passing FirstResponder calls to next responder
  • Next by Date: Re: obj-c/java, which is better and why?
  • Previous by thread: Re: Java application packaging questions
  • Next by thread: Re: Java application packaging questions
  • Index(es):
    • Date
    • Thread