Java System Properties Tool Class __java

Source: Internet
Author: User
Java System Properties Tool class
Altogether about 540 lines of code//Total 108 public methods import Utils.print.Print;

Import java.util.Properties; /** * @author Created by Tan Jian on 2018/4/16 0016. Monday.
 15:36. *©all Rights Reserved. */public class Systempropertieutils {public static String getsuncpuisalist () {return System.getproperty (
    "Sun.cpu.isalist");
    public static String Getsundesktop () {return System.getproperty ("Sun.desktop");
    public static String getsuniounicodeencoding () {return System.getproperty ("sun.io.unicode.encoding");
    public static String Getsuncpuendian () {return System.getproperty ("Sun.cpu.endian");
    public static String Getjavavendorurlbug () {return System.getproperty ("Java.vendor.url.bug");
    public static String Getfileseparator () {return System.getproperty ("File.separator");
    public static String Getjavavendor () {return System.getproperty ("Java.vendor"); } public static String GetsunbOotclasspath () {return System.getproperty ("Sun.boot.class.path");
    public static String Getjavaextdirs () {return System.getproperty ("Java.ext.dirs");
    public static String Getjavaversion () {return System.getproperty ("Java.version");
    public static String Getjavavminfo () {return System.getproperty ("Java.vm.info");
    public static String Getawttoolkit () {return System.getproperty ("Awt.toolkit");
    public static String Getuserlanguage () {return System.getproperty ("User.language"); 
    public static String Getjavaspecificationvendor () {return System.getproperty ("Java.specification.vendor");
    public static String Getsunjavacommand () {return System.getproperty ("Sun.java.command");
    public static String Getjavahome () {return System.getproperty ("Java.home"); public static String Getsunarchdatamodel () {return SYSTEM.GETPROperty ("Sun.arch.data.model"); public static String Getjavavmspecificationversion () {return System.getproperty ("Java.vm.specification.ver
    Sion ");
    public static String Getjavaclasspath () {return System.getproperty ("Java.class.path");
    public static String GetUserName () {return System.getproperty ("User.Name");
    public static String getfileencoding () {return System.getproperty ("file.encoding"); public static String Getjavaspecificationversion () {return System.getproperty ("Java.specification.version")
    );
    public static String Getjavaawtprinterjob () {return System.getproperty ("Java.awt.printerjob");
    public static String Getusertimezone () {return System.getproperty ("User.timezone");
    public static String Getuserhome () {return System.getproperty ("User.home"); public static String Getosversion () {return System.getproperty ("Os.version ");
    public static String Getsunmanagementcompiler () {return System.getproperty ("Sun.management.compiler");
    public static String Getjavaspecificationname () {return System.getproperty ("Java.specification.name");
    public static String Getjavaclassversion () {return System.getproperty ("Java.class.version");
    public static String Getjavalibrarypath () {return System.getproperty ("Java.library.path");
    public static String getsunjnuencoding () {return System.getproperty ("sun.jnu.encoding");
    public static String Getosname () {return System.getproperty ("Os.name");
    public static String Getuservariant () {return System.getproperty ("User.variant"); public static String Getjavavmspecificationvendor () {return System.getproperty ("Java.vm.specification.vend
    or "); public static String Getjavaiotmpdir () {return system.getpropErty ("Java.io.tmpdir");
    public static String Getlineseparator () {return System.getproperty ("Line.separator");
    public static String Getjavaendorseddirs () {return System.getproperty ("Java.endorsed.dirs");
    public static String Getosarch () {return System.getproperty ("Os.arch");
    public static String getjavaawtgraphicsenv () {return System.getproperty ("java.awt.graphicsenv");
    public static String Getjavaruntimeversion () {return System.getproperty ("Java.runtime.version"); public static String Getjavavmspecificationname () {return System.getproperty ("Java.vm.specification.name")
    ;
    public static String Getuserdir () {return System.getproperty ("User.dir");
    public static String Getusercountry () {return System.getproperty ("User.country");
    public static String Getuserscript () {return System.getproperty ("User.script");

}    public static String Getsunjavalauncher () {return System.getproperty ("Sun.java.launcher");
    public static String Getsunospatchlevel () {return System.getproperty ("Sun.os.patch.level");
    public static String Getjavavmname () {return System.getproperty ("Java.vm.name");
    public static String getfileencodingpkg () {return System.getproperty ("file.encoding.pkg");
    public static String Getpathseparator () {return System.getproperty ("Path.separator");
    public static String Getjavavmvendor () {return System.getproperty ("Java.vm.vendor");
    public static String Getjavavendorurl () {return System.getproperty ("Java.vendor.url");
    public static String Getsunbootlibrarypath () {return System.getproperty ("Sun.boot.library.path");
    public static String Getjavavmversion () {return System.getproperty ("Java.vm.version"); } public static StriNg Getjavaruntimename () {return System.getproperty ("Java.runtime.name");
    public static void Setsuncpuisalist (String value) {system.setproperty ("sun.cpu.isalist", value);
    public static void Setsundesktop (String value) {system.setproperty ("Sun.desktop", value); public static void Setsuniounicodeencoding (String value) {system.setproperty ("sun.io.unicode.encoding", VA
    Lue);
    public static void Setsuncpuendian (String value) {system.setproperty ("Sun.cpu.endian", value);
    public static void Setjavavendorurlbug (String value) {system.setproperty ("Java.vendor.url.bug", value);
    public static void Setfileseparator (String value) {system.setproperty ("File.separator", value);
    public static void Setjavavendor (String value) {system.setproperty ("Java.vendor", value); public static void Setsunbootclasspath (String value) {System.setproperty ("Sun.boot.class.path", value);
    public static void Setjavaextdirs (String value) {system.setproperty ("Java.ext.dirs", value);
    public static void Setjavaversion (String value) {system.setproperty ("java.version", value);
    public static void Setjavavminfo (String value) {system.setproperty ("Java.vm.info", value);
    public static void Setawttoolkit (String value) {system.setproperty ("Awt.toolkit", value);
    public static void Setuserlanguage (String value) {system.setproperty ("User.language", value); The public static void Setjavaspecificationvendor (String value) {System.setproperty ("Java.specification.vendor
    ", value);
    public static void Setsunjavacommand (String value) {system.setproperty ("Sun.java.command", value);
    public static void Setjavahome (String value) {system.setproperty ("Java.home", value); } public static void SetsunarchdatamodEl (String value) {system.setproperty ("Sun.arch.data.model", value); public static void Setjavavmspecificationversion (String value) {system.setproperty ("java.vm.specification.
    Version ", value);
    public static void Setjavaclasspath (String value) {system.setproperty ("Java.class.path", value);
    public static void Setusername (String value) {system.setproperty ("User.Name", value);
    public static void Setfileencoding (String value) {system.setproperty ("file.encoding", value); The public static void Setjavaspecificationversion (String value) {System.setproperty ("Java.specification.versi
    On ", value);
    public static void Setjavaawtprinterjob (String value) {system.setproperty ("Java.awt.printerjob", value);
    public static void Setusertimezone (String value) {system.setproperty ("User.timezone", value);
      public static void Setuserhome (String value) {  System.setproperty ("User.home", value);
    public static void Setosversion (String value) {system.setproperty ("os.version", value); public static void Setsunmanagementcompiler (String value) {system.setproperty ("Sun.management.compiler", V
    Alue); public static void Setjavaspecificationname (String value) {system.setproperty ("Java.specification.name", V
    Alue);
    public static void Setjavaclassversion (String value) {system.setproperty ("java.class.version", value); The public static void setjbossmodulessystempkgs (String value) {System.setproperty ("jboss.modules.system.pkg
    S ", value);
    public static void Setjavalibrarypath (String value) {system.setproperty ("Java.library.path", value);
    public static void Setsunjnuencoding (String value) {system.setproperty ("sun.jnu.encoding", value); public static void Setosname (String value) {system.setproperty ("OS.name ", value);
    public static void Setuservariant (String value) {system.setproperty ("user.variant", value); The public static void Setjavavmspecificationvendor (String value) {System.setproperty ("java.vm.specification.v
    Endor ", value);
    public static void Setjavaiotmpdir (String value) {system.setproperty ("Java.io.tmpdir", value);
    public static void Setlineseparator (String value) {system.setproperty ("Line.separator", value);
    public static void Setjavaendorseddirs (String value) {system.setproperty ("Java.endorsed.dirs", value);
    public static void Setosarch (String value) {system.setproperty ("Os.arch", value); 
    public static void Setjavaawtgraphicsenv (String value) {system.setproperty ("java.awt.graphicsenv", value); public static void Setjavaruntimeversion (String value) {system.setproperty ("java.runtime.version", VA
    Lue); } public Static void Setjavavmspecificationname (String value) {system.setproperty ("Java.vm.specification.name", value);
    public static void Setuserdir (String value) {system.setproperty ("User.dir", value);
    public static void Setusercountry (String value) {system.setproperty ("User.country", value);
    public static void Setuserscript (String value) {system.setproperty ("User.script", value); The public static void Setsunjavalauncher (String value) {System.setproperty ("sun.java.la
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.