Can I use Windows Environment Variables into Eclipse Workspace path?

When you start Eclipse for the first time, it asks you the path for the workspace. Now, normal path should be C:\Users\USERNAME\Workspace but, if I try to set %USERPROFILE%\Workspace it doesn't work, it creates a folder called %USERPROFILE%\Workspace under the Eclipse folder.

So the question is: how to use windows environment variables to specify workspace path? Thank you.

P.S: I know that Eclipse has got customizable environment variables but I didn't try them and I want to use them neither.


You can run eclipse.exe -data %USERPROFILES%\myCustomWorkspaceDir to have the workspace in your wanted sub directory. In this case, you will not even get the dialog asking for the workspace.

There are still more runtime options for Eclipse.

Need Your Help

Cannot find module 'read' when using ionic start

node.js npm ionic-framework

Trying to get started with ionic and am not able start an app.

Cancel / Abort all pending requests in angularJs

javascript angularjs xmlhttprequest

On route change, I need to abort ALL pending requests from previous route so that I don't run into problems of responses from previous route messing up data on my current route (it happens sometime...