• 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
altering classpath of a running cocoa app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

altering classpath of a running cocoa app?


  • Subject: altering classpath of a running cocoa app?
  • From: Terrence Talbot <email@hidden>
  • Date: Mon, 6 Aug 2001 14:23:24 -0700

I am writing a Cocoa-Java Application that puts a GUI on top of standalone Java code supplied by another group. The Java code is supplied as a bunch of jar files in a lib directory that can be deployed anywhere on the system.

For building against these jars, I can set OTHER_JAVA_CLASS_PATH and that works fine. For test deployments, I can set NSJavaPath and that works fine,
too, since I know where the jars will be on the test system. (NSJavaPath,
however, does not appear to work with $(HOME), instead requiring an absolute path, e.g., /Users/tjt/blah, which is an unfortunate complication if multiple developers are working on the same project.)

For deployment by customers, a hard-coded NSJavaPath will not work. (I don'
t know the absolute path of their home directories nor are they restricted to putting the tools at a particular location on the file system.) Since my group does not control the standalone jars, rolling them into Contents/Resources/Java is not a solution either.

Essentially what I want to do is put up an alert asking the user to point to the directory that contains the installation of the standalone tools and incorporate that directory information into the running classpath of the app. Although I have searched the documentation and the lists, I cannot find a solution to this problem.

Ideas?

Thanks,


Terrence Talbot


  • Prev by Date: Beginners question: how to use this list ?
  • Next by Date: Wake and sleep notification
  • Previous by thread: Re: Beginners question: how to use this list ?
  • Next by thread: Wake and sleep notification
  • Index(es):
    • Date
    • Thread