Eclipse 中 program arguments 与 VM arguments 的区别

1. program arguments 中的值作为 主函数中的参数args[] 传入
2. VM Arguments 是设置的java虚拟机的属性,这些系统属性都以-D开头, VM argument的设置方法:
方法I
在jsdt-ui上面点右键
然后debug as->
debug configuration
java application->main
标签Arguments
VM arguments里面加一行
-Djsdt.home=C:UsersqionghuDocumentsjsdtjsdt-sjsdt
后面的目录是你自己的对应目录
方法II
在程序中写
System.setProperty("jsdt.home", "C:\Users\qionghu\Documents\jsdt\jsdt-s\jsdt");
 
获取VM Arguments的方法,System.getProperty("jsdt.home");
原文地址:https://www.cnblogs.com/qionglouyuyu/p/4609867.html