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: Changing permissions on system files



Eric Kolotyluk wrote:

>I thought the best place to install Helvetica would be
>/System/Library/Frameworks/JavaVM.framework/versions/1.4.2/Home/lib/fonts

I just realized you might want to use this path:
  /Library/Java/Home/lib/fonts

to avoid tying your code to a specific version of Java (i.e. 1.4.2 in your
example).

The /Library/Java/Home/ symlink should always point to the appropriate Home
folder.

If you do use a version-specific pathname, you should assemble it
dynamically using one of the Java-version properties.  The most reliable is
probably "java.version", which may contain a "build" number after an "_",
as in "1.4.2_09".  So you'd strip off the "_" and everything after it
before building the pathname.

See the full history of the version numbering patterns here:
  <http://developer.apple.com/technotes/tn2002/tn2110.html>

  -- GG


 _______________________________________________
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



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.