score:259
From http://help.eclipse.org/help21/topic/org.eclipse.platform.doc.user/tasks/running_eclipse.htm:
Use the following command-line argument:
-data your_workspace_location
For example,
-data c:\users\robert\myworkspace
you can also use UNIX-style relative path names such as
-data ../workspace
even under Windows, in case something doesnt like colons or backslashes in parameters, like Jumplist Launcher
score:-1
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.
score:0
From https://help.eclipse.org/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html
It is also possible to specify the workspace location using the osgi.instance.area
JVM arg as -Dosgi.instance.area=../workspace
This can be specified in the eclipse.ini file along with existing/other JVM args such as -Xms, -Xmx
.
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.
score:1
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 :
cd ECLIPSE_LOCATION
start STS.exe -data "WORKSPACE_LOCATION"
Example:
cd /D D:\IDE\sts-bundle\sts-3.7.0.RELEASE
start STS.exe -data "D:\My Workspace\workspace1"
score:2
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.
score:10
note that you can use UNIX-style relative path names such as
-data ../workspace
even under Windows, in case something doesn't like colons or backslashes in parameters, like Jumplist Launcher
score:20
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.
score:20
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.
Source: stackoverflow.com
Related Query
- 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
- Eclipse recognizes android device, but won't doesn't allow selection of it
- <link> tag does not import the .css
- Run all JUnit tests indepentently in Eclipse, reloading Spring context each time
- my android app runs fine in the emulator, but when i publish it it's wrong
- is actionscript eclipse plugin still maintained?
- Save the data and using it after restarting the app Android
- How to not write the DocumentRoot to the XML
- Array list scanner loop quit functionality
- Android: Bad call: specified pacakge **** under uid 10121 but it is really -1
- One of your SonarQube server cannot be reached. Please check your connection settings
- Android Emulator Crashing in Android 3.0 (Honeycomb)
- While debugging PHP, the visual of the debugged line won't change to the next in Eclipse
- Eclipse - Drools - Exception in thread "main" java.lang.ExceptionInInitializerError
- how to spot and fix differences between eclipse and maven build?
- Programming Java 8 in Eclipse
- Maven from command line with multiple eclipse projects
- The best way to transfer projects from one eclipse to another
- Can't install Google plugin for eclipse in JUNO
- Commons Lang HashCodeBuilder vs. Eclipse hashCode() generation
- unable to call onDrawerOpened and onDrawerClosed
- Invalid path for Android NDK in Eclipse Preferences
- self-describing project in Eclipse using m2e
- C++11 full support on Eclipse
- Building a plugin with two source folders fails
- hashCode collisions are putting two different words in same position
- Android - Graphical display not working in Eclipse
- Issues while lauching emulator
- Changing activities on end phone call
- new Rengine(...); fails without error
- Setting up subclipse with existing project with multiple SVN checked-out folders