PDA

View Full Version : platform Condition, need some extra info



LSmyth
04-16-2003, 12:07 PM
Hello all,

This maybe an obvious one, but I can;t see it.

Where did Installshield get the platform list avialable by default in the platform condition bean?

Its just i need a big everything style list of platforms, basically all the possible os.name, os.version, and os.archs that can be out in the world.

As i say someone in installshield has gone to the bother of putting that list together for there IDE, so is it somewhere handy?

Thanks
Liam

Jeff Dillon
04-17-2003, 09:55 PM
Those properties are called Java System Properties and are a standard part of the JVM. The JVM defines a bunch of properties which are set automatically at runtime. The Platform COndition meerely provides a convenient wrapper for those properties.

You can get a list of the properties in the Java API by looking at the System class. Inside of the System class are the methods getProperties and getProperty.

LSmyth
04-18-2003, 07:04 AM
Hello there,

Sorry if I did not explain correctly.

I am aware of your source, the 3 system properties, "os.name", "os.version", "os.arch".

Its just I would like to find a list of these for all platforms.

If this does not exist, then the only way to find them, is to write a small java app, and run it on every platform and compile the list manually. I was hoping for a standards document of list from somewhere.

And as I say, someone in installshield had to compile this list for there IDE, hence my query here.

Liam

Jeff Dillon
04-18-2003, 08:46 AM
I copied the following values out of the Java documentation. They can all be accessed with $J. Like $J(os.version).

java.version Java Runtime Environment version
java.vendor Java Runtime Environment vendor
java.vendor.url Java vendor URL
java.home Java installation directory
java.vm.specification.version Java Virtual Machine specification version
java.vm.specification.vendor Java Virtual Machine specification vendor
java.vm.specification.name Java Virtual Machine specification name
java.vm.version Java Virtual Machine implementation version
java.vm.vendor Java Virtual Machine implementation vendor
java.vm.name Java Virtual Machine implementation name
java.specification.version Java Runtime Environment specification version
java.specification.vendor Java Runtime Environment specification vendor
java.specification.name Java Runtime Environment specification name
java.class.version Java class format version number
java.class.path Java class path
java.library.path List of paths to search when loading libraries
java.io.tmpdir Default temp file path
java.compiler Name of JIT compiler to use
java.ext.dirs Path of extension directory or directories
os.name Operating system name
os.arch Operating system architecture
os.version Operating system version
file.separator File separator ("/" on UNIX)
path.separator Path separator (":" on UNIX)
line.separator Line separator ("\n" on UNIX)
user.name User's account name
user.home User's home directory
user.dir User's current working directory

Jeff Dillon
04-18-2003, 08:46 AM
These are the values for Java 1.4. There may be fewer of these in previous versions.

brmatthews
04-18-2003, 09:33 AM
I have the same issue with this...I want to know what all the os.name & os.version properties are for different operating systems. It doesn't seem that the original post was answered.
Is there some documentation that explains what all of the java system properties will return for os.name and os.version.?

For example, a Windows 2000 machine would be:

os.name = Windows 2000
os.version = 5.0

For Windows 2003:

os.name = Windows XP
os.version = 5.2

In other words, is there a list of all the Windows and Linux OS's and the VALUES that will be returned for each of the Java System Properties?

RobertDickau
04-18-2003, 10:36 AM
I'm not personally aware of an official list, but a web search finds a few pages similar to this: http://www.vamphq.com/os.html.