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: os.version System Property



Not on Leopard:

Fudo:~ rickgenter$ echo 'public class Foo { public static void main(String[] args) { System.out.println(System.getProperty("os.version")); } }' > Foo.java
Fudo:~ rickgenter$ javac Foo.java
Fudo:~ rickgenter$ java Foo
10.5.1
Fudo:~ rickgenter$


On Nov 29, 2007, at 1:21 PM, Ken Orr wrote:

I did try it and it seems to only return the tenths place.


On 11/29/07 10:53 AM, "Shawn Erickson" <email@hidden> wrote:


On Nov 29, 2007, at 5:36 AM, Ken Orr wrote:

System.getProperty(“os.version”) returns the major version right? That is, it returns 10.4 instead of 10.4.9?


Did you try it? I believe it returns 10.4.9 on a 10.4.9 system.

-Shawn



_______________________________________________
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/rick.genter %40gmail.com


This email sent to email@hidden

-- Rick Genter email@hidden



_______________________________________________
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
References: 
 >Re: os.version System Property (From: Ken Orr <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.