- 浏览: 31699 次
- 性别:
- 来自: 上海
文章分类
最新评论
System.out.println("java_vendor:" + System.getProperty("java.vendor"));
System.out.println("java_vendor_url:"+ System.getProperty("java.vendor.url"));
System.out.println("java_home:" + System.getProperty("java.home"));
System.out.println("java_class_version:"+ System.getProperty("java.class.version"));
System.out.println("java_class_path:" + System.getProperty("java.class.path"));
System.out.println("os_name:" + System.getProperty("os.name"));
System.out.println("os_arch:" + System.getProperty("os.arch"));
System.out.println("os_version:" + System.getProperty("os.version"));
System.out.println("user_name:" + System.getProperty("user.name"));
System.out.println("user_home:" + System.getProperty("user.home"));
System.out.println("user_dir:" + System.getProperty("user.dir"));
System.out.println("java_vm_specification_version:"+ System.getProperty("java.vm.specification.version"));
System.out.println("java_vm_specification_vendor:"+ System.getProperty("java.vm.specification.vendor"));
System.out.println("java_vm_specification_name:"+ System.getProperty("java.vm.specification.name"));
System.out.println("java_vm_version:"+ System.getProperty("java.vm.version"));
System.out.println("java_vm_vendor:"+ System.getProperty("java.vm.vendor"));
System.out.println("java_vm_name:" + System.getProperty("java.vm.name"));
System.out.println("java_ext_dirs:"+ System.getProperty("java.ext.dirs"));
System.out.println("file_separator:"+ System.getProperty("file.separator"));
System.out.println("path_separator:"+ System.getProperty("path.separator"));
System.out.println("line_separator:"+ System.getProperty("line.separator"));
Win7 电脑结果:
java_vendor:Sun Microsystems Inc. 提供商
java_vendor_url:http://java.sun.com/ 提供商地址
java_home:D:\tools\Java\jdk1.5.0_21\jre jdk路径
java_class_version:49.0 格式版本
java_class_path:D:\workspaces\arron.huang-lottery\TestJava\bin 项目class文件在的路径
os_name:Windows 7 系统名
os_arch:x86 系统架构
os_version:6.1 系统版本
user_name:arron.huang 用户名
user_home:C:\Users\arron.huang 用户目录
user_dir:D:\workspaces\arron.huang-lottery\TestJava 项目路径
java_vm_specification_version:1.0 虚拟机版本
java_vm_specification_vendor:Sun Microsystems Inc. 虚拟机供应商
java_vm_specification_name:Java Virtual Machine Specification 规范名称
java_vm_version:1.5.0_21-b01 虚拟机实现版本
java_vm_vendor:Sun Microsystems Inc. java 运行时环境规范供应商
java_vm_name:Java HotSpot(TM) Client VM java实现名称
java_ext_dirs:D:\tools\Java\jdk1.5.0_21\jre\lib\ext Java 虚拟机实现名称
file_separator:\ 文件分隔符(路径之间分割)
path_separator:; 路径分割
line_separator: 行分割(\n)
--------------------------------------------------------
System.setProperty("","")保存需要同配置,如:链接外部接口,外部接口需要,只登陆一次的情况
发表评论
-
Java 网络 网络字节序 字节序
2012-09-16 21:24 726BIG-ENDIAN(大字节序、 ... -
java spring 框架 mvc 开发,action配置
2011-09-08 10:10 897<?xml version="1.0" ... -
JAVA 的 AES 加密方式使用
2011-09-08 00:05 1314简单的AES加密,废话不多说,直接代码 ========== ... -
Java JPA 操作数据,事物控制不完整 clear(),merge()方法分析
2011-08-19 12:19 3215最近在使用框架 spring+jpa+cxf 部署一个服务,出 ... -
Invocation of init method failed; nested exception is javax.xml.ws.WebServiceEx
2011-08-04 10:50 4208在webservice项目中,出 ... -
Missing classpath entry D:\jboss-4.0.5.GA \server\default\lib\mail.jar
2011-07-26 12:38 2299尝试新版本Eclipse3.7 indigo 加载jboss4 ... -
Xstream 对象与xml 互转
2011-06-29 17:55 1515需要 jar : xtream.jar ... -
jsp jstl标签使用
2011-06-29 16:27 1122JSTL使用表达式来简化页面的代码,这对一些标准的方法,例如b ... -
List 分组
2011-06-29 16:26 840private Map<String, Map<S ... -
Eclipse不自动编译 手动project》Clean
2011-06-29 16:23 2676打开project->build automatical ... -
Context initialization failed
2011-06-29 16:17 3781错误描述:Context initialization fai ... -
打包jar文件,但是java项目中引用了jar文件
2011-06-20 18:27 844插件地址,在线安装 http://kurucz-grafika ... -
java 按行读取文件内容
2011-06-20 10:40 1111String readPath = ""; ... -
使用Common-fileUpload 上传文件 读取文件内容
2011-05-05 23:17 1427private String fileTmpPath = &q ... -
简易读取配置在xml中的内容
2011-05-05 10:22 747一般我们会把经常修改的内容写在xml中利于我们修改,维护信息 ...
相关推荐
Java中System.getProperty的使用
这是本人在进行使用递归替换HTML文件中的图片内容时,所遇到的问题解决方案,喜欢能够帮到大家,让自己懂得东西越来愈多,做更多的分享
System.getProperty 通过该方法获取系统属性信息 很好
主要介绍了Java的System.getProperty()方法获取大全,罗列了System.getProperty()方法获取各类信息的用法,具有一定的参考借鉴价值,需要的朋友可以参考下
java获取操作系统名称,通过 System.getProperty("os.name") 由于JDK的bug,Windows Server 2012 R2获取到的System.getProperty("os.name") 为 Window NT unknown 因此需要通过JNA(Java Native Access )调用...
intellij idea 多module时,System.getProperty("user.dir")获取的是默认路径。此文档修改获取到的module路径。使获取的路径到当前module实际路径。亲测好用
利用System.getProperty()函数获取当前路径: System.out.println(System.getProperty("user.dir"));//user.dir指定了当前的路径
java log4j统一打印在user.dir目录下(windows、linux通用、不用考虑不同操作系统分隔符不一致的情况)
Java连接数据库代码实现代码, 代码片段: public MyTask(ServletContext context) { this.mContext = context; Properties prop = new Properties();... System.out.println("sql ip: "+this.sql_ip);
1、利用System.getProperty()函数获取当前路径: System.out.println(System.getProperty(user.dir));//user.dir指定了当前的路径 2、使用File提供的函数获取当前路径: File directory = new File(&#...
String classNames =pro.getProperty("ClassName"); //代表 包名.类名 String FieldNames=pro.getProperty("FieldName"); //代表 属性 姓名 String FieldValues=pro.getProperty("FieldValue");//代表 属性 姓名 ...
new File(System.getProperty("user.home")+File.separator+"Videos"); 其它: new File(System.getProperty("user.home")+File.separator+"Movies"); 我的电脑是C:\Documents and Settings\hz001\Videos这个路径 ...
1、利用System.getProperty()函数获取当前路径: 代码如下:System.out.println(System.getProperty(“user.dir”));//user.dir指定了当前的路径 2、使用File提供的函数获取当前路径: 代码如下:File directory = new...
1.将jacob.jar导入到项目的lib中去 2.将Jacob.dll放至“WINDOWS\SYSTEM32”下面(或者放在对应的jdk目录下 如:C:\Program ...附:可以通过System.out.println(System.getProperty("java.library.path"))查出jdk的信息
String sMax = props.getProperty("tt.MaxPoolSize"); String sMin = props.getProperty("tt.MinPoolSize"); String sInit = props.getProperty("tt.InitialPoolSize"); String sMaxStmts = props.getProperty(...
String template=System.getProperty("user.dir")+"\\src\\template.xls";//模板文件 String book=System.getProperty("user.dir")+"\\src\\book.xls"; Workbook wb=Workbook.getWorkbook(new File(template))...
System.out.println(System.getProperty("java.library.path")); 看看结果与自己电脑环境变量 path 的值 是否一致。如果不一致,再新建一个项目试试,我就碰到过这个问题,新建了之后就好了。大家试试吧!
String osName = System.getProperty("os.name"); StringBuffer systemPathBuff = new StringBuffer(""); if (osName.indexOf("Windows") > -1) ...{ // Windows操作系统的cmd.exe的绝对路径 systemPathBuff....
B, java web 项目要用一个可以正常启动的web项目(当然没用到jaxb的web项目),打印System.out.println(System.getProperty("java.endorsed.dirs"));即可,我的是java web项目,打出的是E:/tomcat6/common/endorsed ...
请注意:加入百度ueditor插件的项目或产品,在linux下部署无问题,只要部署好就可以,但是如果是windows系统的话,上传... //System.out.println("操作系统类型>>>>"+System.getProperty("os.name")); return str; }