eclipse中run cofigurations 里面 Arguments 的两种参数详解

来源:互联网 发布:plc触摸屏编程实例 编辑:程序博客网 时间:2024/05/29 09:09

eclipse中run cofigurations 里面 Arguments 的两种参数详解


利用下面代码调试可以看出

public static void main(String[] args) {        for(int i=0;i<args.length;i++)        System.out.println(args[i]);        System.out.println(System.getProperty("runtime"));    }

program arguments (args中传进去的参数数组)的参数为aa bb 每个参数只需要换行即可,VM arguments 中的参数为虚拟机中的参数,用system.getProperty(“参数名”)

图片为配置结果


最后输出结果为:
图片为输出结果


点击variables可出现已经配置好的参数:

0 0
原创粉丝点击