🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7779

Re: How to use heys of System.properties() ?

#7779
From: ArShAm
Date: Sun, 13 May 2001 14:45
115 lines
4833 bytes
Hi
Where can find the list of these properties?

Thanks
    ArShAm





"J. David Boyd" <dave@tsc-corp.com> wrote in message
news:MPG.15637261984f444f989680@forums.borland.com...
> [This followup was posted to borland.public.jbuilder.java.language and a
> copy was sent to the cited author.]
>
> In article <3af99b7f_2@dnews>, ArShAm_MeTaL@hotmail.com says...
> > Hi there
> >
> > How to get keys of the System.properties() , like java.version
> >
> > Thanks
> >         ArShAm
> >
>
> Like this ....
>
>
> public class Environment {
>
>    public Environment(){
>    }
>
>    public static void main(String [] args){
>
>    System.out.println("Java Runtime Environment version               " +
>     System.getProperty("java.version"));
>
>    System.out.println("Java Runtime Environment vendor                " +
>     System.getProperty("java.vendor"));
>
>    System.out.println("Java vendor URL                                " +
>     System.getProperty("java.vendor.url"));
>
>    System.out.println("Java installation directory                    " +
>     System.getProperty("java.home"));
>
>    System.out.println("Java Virtual Machine specification version     " +
>     System.getProperty("java.vm.specification.version"));
>
>    System.out.println("Java Virtual Machine specification vendor      " +
>     System.getProperty("java.vm.specification.vendor"));
>
>    System.out.println("Java Virtual Machine specification name        " +
>     System.getProperty("java.vm.specification.name"));
>
>    System.out.println("Java Virtual Machine implementation version    " +
>     System.getProperty("java.vm.version"));
>
>    System.out.println("Java Virtual Machine implementation vendor     " +
>     System.getProperty("java.vm.vendor"));
>
>    System.out.println("Java Virtual Machine implementation name       " +
>     System.getProperty("java.vm.name"));
>
>    System.out.println("Java Runtime Environment specification version " +
>     System.getProperty("java.specification.version"));
>
>    System.out.println("Java Runtime Environment specification vendor  " +
>     System.getProperty("java.specification.vendor"));
>
>    System.out.println("Java Runtime Environment specification name    " +
>     System.getProperty("java.specification.name"));
>
>    System.out.println("Java class format version number               " +
>     System.getProperty("java.class.version"));
>
>    System.out.println("Java class path                                " +
>     System.getProperty("java.class.path"));
>
>    System.out.println("Path of extension directory or directories     " +
>     System.getProperty("java.ext.dirs"));
>
>    System.out.println("Operating system name                          " +
>     System.getProperty("os.name"));
>
>    System.out.println("Operating system architecture                  " +
>     System.getProperty("os.arch"));
>
>    System.out.println("Operating system version                       " +
>     System.getProperty("os.version"));
>
>    System.out.println("File separator (\"/\" on UNIX)                 " +
>     System.getProperty("file.separator"));
>
>    System.out.println("Path separator (\":\" on UNIX)                 " +
>     System.getProperty("path.separator"));
>
>    System.out.println("Line separator (\"\\n\" on UNIX)               " +
>     System.getProperty("line.separator"));
>
>    System.out.println("User's account name                            " +
>     System.getProperty("user.name"));
>
>    System.out.println("User's home directory                          " +
>     System.getProperty("user.home"));
>
>    System.out.println("User's current working directory               " +
>     System.getProperty("user.dir"));
>
>    }
> }
>
> ... Hope this helps,
>
> Dave
Technical Details
Message-ID: <9dmab1$i10ip$2@ID-89294.news.dfncis.de>
Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!61.11.252.150!not-for-mail
References: <3af99b7f_2@dnews> <MPG.15637261984f444f989680@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,6900895686788188
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-13 08:50:02 PST
Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!61.11.252.150!not-for-mail
From: "ArShAm" <ArShAm@abshar.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: How to use heys of System.properties() ?
Date: Sun, 13 May 2001 19:15:57 +0430
Lines: 117
Message-ID: <9dmab1$i10ip$2@ID-89294.news.dfncis.de>
References: <3af99b7f_2@dnews> <MPG.15637261984f444f989680@forums.borland.com>
Reply-To: "ArShAm" <ArShAm@abshar.net>
NNTP-Posting-Host: 61.11.252.150
X-Trace: fu-berlin.de 989768897 18907737 61.11.252.150 (16 [89294])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700