Set the execution directory in Eclipse?

Is it possible, to execute a class in a specified directory?

I mean, a.class is in directory abc and i want it to be executed as if it were in directory xyz.

Answers


Absolutely.

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.


Need Your Help

How to create a development/debug and production setup

java gwt

I recently deployed inadvertently a debug version of our game typrX

Web Application does not appear to deploy properly on remote tomcat 7

java spring maven tomcat

I have a Java Web application that when deployed through eclipse or through copy/paste of .war file into local tomcat will deploy properly and I can use the web application. I am attempting to dep...