- Properties props=System.getProperties(); //系统属性
- System.out.println("Java的运行环境版本:" +props.getProperty( "java.version" ));
- System.out.println("Java的运行环境供应商:" +props.getProperty( "java.vendor" ));
- System.out.println("Java供应商的URL:" +props.getProperty( "java.vendor.url" ));
- System.out.println("Java的安装路径:" +props.getProperty( "java.home" ));
- System.out.println("Java的虚拟机规范版本:" +props.getProperty( "java.vm.specification.version" ));
- System.out.println("Java的虚拟机规范供商:" +props.getProperty( "java.vm.specification.vendor" ));
- System.out.println("Java的虚拟机规范名称:" +props.getProperty( "java.vm.specification.name" ));
- System.out.println("Java的虚拟机实现版本:" +props.getProperty( "java.vm.version" ));
- System.out.println("Java的虚拟机实现供应商:" +props.getProperty( "java.vm.vendor" ));
- System.out.println("Java的虚拟机实现名称:" +props.getProperty( "java.vm.name" ));
- System.out.println("Java运行时环境规范版本:" +props.getProperty( "java.specification.version" ));
- System.out.println("Java运行时环境规范供应商:" +props.getProperty( "java.specification.vender" ));
- System.out.println("Java运行时环境规范名称:" +props.getProperty( "java.specification.name" ));
- System.out.println("Java的类格式版本号:" +props.getProperty( "java.class.version" ));
- System.out.println("Java的类路径:" +props.getProperty( "java.class.path" ));
- System.out.println("加载库时搜索的路径列表:" +props.getProperty( "java.library.path" ));
- System.out.println("默认的临时文件路径:" +props.getProperty( "java.io.tmpdir" ));
- System.out.println("一个或多个扩展目录的路径:" +props.getProperty( "java.ext.dirs" ));
- System.out.println("操作系统的名称:" +props.getProperty( "os.name" ));
- System.out.println("操作系统的构架:" +props.getProperty( "os.arch" ));
- System.out.println("操作系统的版本:" +props.getProperty( "os.version" ));
- System.out.println("文件分隔符:" +props.getProperty( "file.separator" )); //在 unix 系统中是"/"
- System.out.println("路径分隔符:" +props.getProperty( "path.separator" )); //在 unix 系统中是":"
- System.out.println("行分隔符:" +props.getProperty( "line.separator" )); //在 unix 系统中是"/n"
- System.out.println("用户的账户名称:" +props.getProperty( "user.name" ));
- System.out.println("用户的主目录:" +props.getProperty( "user.home" ));
- System.out.println("用户的当前工作目录:" +props.getProperty( "user.dir" ));
详细解决方案
System.getProperty()系统参数
热度:76 发布时间:2024-01-19 09:45:47.0
相关解决方案
- 关于 System.getProperty("audio.encodings");该怎么处理
- System.arraycopy()的1点疑问
- 为什么虚拟串口安装了不能用 显示“Unable loading system driver ,the application will be eixt.”解决办法
- System.out.println(1.001*1000)输出结果为什么是1000.99999999?解决方法
- System.out.println(3L == 3f);结果为什么为true解决思路
- system.out.println(-8>>>2),输出1073741822。求解释。多谢
- System.out.println(3/2>一);输出什么
- System.Security 命名空间解决方法
- 错误详细信息: System.Data.OleDb.OleDbException: 表 'table_user' 已存在
- System:String 转 std上的string
- 一个关于“不能将参数 1 从“char [80]”转换为“System:Object ^”的有关问题
- System:String 转 std下的string解决办法
- 无法在 System.String 和 System.Int64 上执行“=”操作。解决思路
- System:String转换有关问题
- System.ArgumentNullException 以及 Array的CopyTo 有关问题
- 创建什么项目才能 运行using namespace System;解决办法
- System.out.println ( 'A' +20.5 );的运行结果是85.5,该如何解决
- j# 里如何定义和 C#同样功能的 override void DefWndProc(ref System.Windows.Forms.Message m) 多谢,很
- System.out.println ( 'A' +20.5 );的运作结果是85.5
- System.out.println ( 'A' +20.5 );的运作结果是85.5
- 水晶报表-Exception of type 'System.OutOfMemoryException' was thrown.解决思路
- 水晶表格-Exception of type 'System.OutOfMemoryException' was thrown
- 上载个…System.Web.DataVisualizatio有关问题解决了!来的送分
- 水晶表格-Exception of type 'System.OutOfMemoryException' was thrown
- System.Runtime.InteropServices.ExternalException: GDI+ 中发生一般性异常
- 未能加载文件或程序集“System.Web.Mvc, Version=3.0.0.0, .该怎么解决
- tabao File System 这个文件系统,有用过的友人吗
- asp.net 预约义的类型"system.object"未定义或未导入,跪求高手
- 2008操作系统布署项目未能加载资料或程序集“System.Web.Extensions
- System.Web.HttpContext.Current.Request可写吗?该怎么解决