在Eclipse中设置执行目录? [英] Set the execution directory in Eclipse?
本文介绍了在Eclipse中设置执行目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以在指定的目录中执行一个类吗?
Is it possible, to execute a class in a specified directory?
我的意思是,a.class在目录abc中,我希望它被执行,就好像它位于目录xyz。
I mean, a.class is in directory abc and i want it to be executed as if it were in directory xyz.
推荐答案
绝对。
调试/运行对话框(下拉按钮旁边的bug /go按钮),在参数选项卡中,通过选择其他设置工作目录,然后输入相关的目录名称。请注意,目录可以使用像 $ workspace_loc
这样的变量。您甚至可以使用 $ folder_prompt
来提示用户。
Go into the Debug/Run dialog (drop down button next to the bug/"go" buttons), and in the Arguments tab, set the Working Directory by selecting "Other" and then putting in the relevant directory name. Note that the directory can use "variables" like $workspace_loc
. You can even make it prompt the user using $folder_prompt
.
这篇关于在Eclipse中设置执行目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文