Eclipse 中 program arguments 与 VM arguments 的区别
来源:互联网 发布:淘宝上几十块的人参 编辑:程序博客网 时间:2024/05/20 21:58
Eclipse中program arguments 与 VM arguments的区别
附代码:
publicstaticvoid main(String[] args){
System.out.println("Program arguments" );
for( String str:args ){
System.out.println( str );
}
System.out.println("VM arguments" );
String syspro1 = "syspro1";
System.out.println( System.getProperty(syspro1));
String syspro2 = "syspro2";
System.out.println( System.getProperty(syspro2));
}
运行结果:
实际上program arguments中的值作为args[]的参数传入的,而VM Arguments是设置的虚拟机的属性。
program arguments是要传给你的应用程序的,它通过主函数中的args来传值。VM arguments是系统的属性,要传给java虚拟机的。
例如: VM arguments:
-DldUserName=rex -DldPassword=amaxgs -Xmx512m -Dcom.datasweep.plantops.j2eevendor=JBoss -Djava.library.path=D:/work/RNNativeLibsWin32.jar;Y:/PlantOperations/bldPlantOperations/code/lib/jdic -Djava.ext.dirs=Y:/PlantOperations/bldPlantOperations/CODE/lib/jboss;Y:/PlantOperations/bldPlantOperations/code/bld/SUN_JDK/jre/lib/ext;Y:/PlantOperations/bldPlantOperations/code/lib/xerces;E:/FTPCDestination/jboss-eap-5.0.0.GA/jboss-eap-5.0/jboss-as/client -Djava.endorsed.dirs=Y:/PlantOperations/bldPlantOperations/code/lib/jboss/endorsed
这些系统属性都以—D开头。- Eclipse 中 program arguments 与 VM arguments 的区别
- Eclipse中program arguments 与 VM arguments的区别
- Eclipse 中 program arguments 与 VM arguments 的区别
- Eclipse 中 program arguments 与 VM arguments 的区别
- Eclipse 中 program arguments 与 VM arguments 的区别
- Eclipse 中 program arguments 与 VM arguments 的区别
- Eclipse 中 program arguments 与 VM arguments 的区别。
- eclipse中Program arguments和VM arguments的区别
- eclipse中Program arguments和VM arguments的区别
- java之program arguments与VM arguments
- Eclipse开发过程中个VM Arguments的设置
- Eclipse开发过程中个VM Arguments的设置
- Eclipse开发过程中个VM Arguments的设置
- Eclipse开发过程中个VM Arguments的设置
- Eclipse开发过程中个VM Arguments的设置
- Eclipse开发过程中个VM Arguments的设置
- Eclipse开发过程中个VM Arguments的设置
- Eclipse开发过程中个VM Arguments的设置
- Junit基础学习
- Oracle 300问
- 使用RUBY生成二维码
- S_ISREG等几个常见的宏
- Windows查看SID
- Eclipse 中 program arguments 与 VM arguments 的区别
- 近期遇到的一些问题及解决方法(11-24)
- (六)Intellij 中的蜡笔黄--警告
- Debug方法
- 自定义ProgressDialog 博客2
- sql loader的用法简介
- 如何在透明视图上显示不透明的子视图
- PCL环境配置迁移指南
- CityEngine CGA语法之尺寸函数 s(scope size)