use the following command-line argument:
you can also use unix-style relative path names such as
even under windows, in case something doesnt like colons or backslashes in parameters, like jumplist launcher
i wish people would give an actual example, i learn better with examples rather than syntax. so here it goes...
"c:\myeclipse blue edition\myeclipse blue edition 10\myeclipse-blue.exe" -showlocation -data "c:\eclipsework\workspace"
this command will open eclipse with the specified workspace. this is a working example.
it is also possible to specify the workspace location using the
osgi.instance.area jvm arg as
this can be specified in the eclipse.ini file along with existing/other jvm args such as
this option may be convenient for those who just want to append to the eclipse.ini file (which already contains other jvm args) without worrying to ensure that jvm args appear at the end.
creating a shortcut file with target :
create a shortcut of your eclipse. open the properties of the shortcut file and set the target as follows,
e\sts.exe -data "workspace_location"
for launching from .bat file :
start sts.exe -data "workspace_location"
cd /d d:\ide\sts-bundle\sts-3.7.0.release
start sts.exe -data "d:\my workspace\workspace1"
old question, i know, but just wanted to point out that you may need to add quotes around the target workspace path. for example; i tried
c:\eclipse\eclipse.exe -data e:\eclipse projects2 and it would open a blank, default, workspace while doing
c:\eclipse\eclipse.exe -data "e:\eclipse projects2" allowed it to use the existing workspace. i'm guessing this varies based on os and/or eclipse version, but i'm not sure exactly what factors into this, so just try both ways until you get one to load the correct/existing workspace.
note that you can use unix-style relative path names such as
even under windows, in case something doesn't like colons or backslashes in parameters, like jumplist launcher
with the -data switch
setting a specific location for the workspace with -data
to use the -data command line argument, simply add -data your_workspace_location (for example, -data c:\users\robert\myworkspace) to the target field in the shortcut properties, or include it explicitly on your command line.
we set the default workspace for students at a high school by modifying the shortcut properties. in this case, we operate a windows 7 environment. the default workspace is on a student's network share mapped as the h: drive so we added -data h:\workspace. the screenshot shows exactly where.
- Starting Eclipse w/ Specific Workspace
- Remove "Project Specific Settings" for all projects in an Eclipse workspace at once?
- Eclipse | Build Automatically for specific project currently open in workspace
- Eclipse 100%+ CPU usage with specific workspace
- Search eclipse workspace where string not starting with
- Eclipse runs in background when specific workspace selected
- Build specific BlackBerry project in Eclipse workspace
- Some projects cannot be imported because they already exist in the workspace error in Eclipse
- Create a new workspace in Eclipse
- eclipse stuck when building workspace
- Where in an Eclipse workspace is the list of projects stored?
- "SetPropertiesRule" warning message when starting Tomcat from Eclipse
- Change Eclipse settings to ignore errors on a specific file
- Searching a string in eclipse workspace
- Disable building workspace process in Eclipse
- How to Clone an Eclipse Workspace
- eclipse workspace: how to rename workspace
- Eclipse + EGit: clone project into workspace
- What are the gigantic *.CFS files all about in Eclipse workspace plugin folder?
- Java Eclipse turn off auto build workspace on save
- Opening an Eclipse project already in my workspace
- Eclipse freezing at startup - before loading workspace
- Eclipse import project error, overlaps workspace location
- Moving Eclipse Workspace from ~ to new directory?
- Eclipse always Building workspace
- Clean out Eclipse workspace metadata
- Find/replace across workspace in eclipse
- How can I disable compiler warnings in Eclipse on a file specific basis?
- Eclipse refreshing workspace takes forever
- In Eclipse m2e, how to reference workspace project?
More Query from same tag
- How can I run Eclipse in OS X with JDK 1.8?
- Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3139 in java.library.path
- In pom .xml it's showing error: Failure to transfer org.apache.maven.shared:file-management:pom:3.0.0
- Project is deployed, but doesn`t run
- Eclipse: Override library path defined in project.properties
- While Connecting files Network error issue in Eclipse
- How to disable auto "Update Maven Dependencies" after saving a pom.xml?
- How to run all TestNG test in a package in Eclipse?
- How can I only search java class in main source folder (exclude test folder) in eclipse
- Is there any plugin available from where i can auto generate entity relationship Diagram with eclipse
- Meshing Acceleo with Xtext
- Eclipse html: Doesn't indent on some tags
- Set param validation in the constructor template in eclipse?
- Eclipse e4 application: parts opened by default for the first run
- Publish soap service in a server
- Annotations declared in Abstract Class not being loaded
- eclipse - how to create a java project for multiple developers( github)
- Eclipse Preference Page Overwrite Restore Defaults Button Listener
- Javafx No toolkit found
- this script must be run from the base directory of your working copy
- Eclipse: how to show the Markers tab in the bottom pane
- android - Unable to instantiate activity - ClassNotFound - Fails on one eclipse but not other
- Eclipse Compiling for Debug vs Native Debug (C++ Code)
- How to find the error displayed on my project.?
- Why are my .js files launching in gedit from eclipse?
- Crystal reports installation in Eclipse
- package explorer > View > Flat doesn't work; buildpath Libraries disappeared
- Cannot run simple android application in eclipse
- How set classpath for Rhino debugger plugin in Eclipse?