码迷,mamicode.com
首页 > 系统相关 > 详细

Eclipse 中 program arguments 与 VM arguments 的区别

时间:2015-06-30 12:40:14      阅读:452      评论:0      收藏:0      [点我收藏+]

标签:

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:\Users\qionghu\Documents\jsdt\jsdt-s\jsdt
后面的目录是你自己的对应目录
方法II
在程序中写
System.setProperty("jsdt.home", "C:\\Users\\qionghu\\Documents\\jsdt\\jsdt-s\\jsdt");
 
获取VM Arguments的方法,System.getProperty("jsdt.home");

Eclipse 中 program arguments 与 VM arguments 的区别

标签:

原文地址:http://www.cnblogs.com/qionglouyuyu/p/4609867.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!