Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to launch eclipse from a command line on MacOS with a workspace pathname

Tags:

macos

eclipse

On linux:

eclipse PathnameToWorkspace

works fine, and launches eclipse on the workspace.

I've never been able to figure out the MacOS moral equivalent, given the MacOS application tree structure.

I suspect this is not a hard problem.

like image 866
bmargulies Avatar asked Nov 23 '09 14:11

bmargulies


People also ask

How do I open eclipse workspace on Mac?

Go to eclipse Market place. Search for "macOS Eclipse Launcher" and install. It will restart . Now under file menu check for open option > there you will find other projects to open also at same time .

How do I open eclipse in terminal?

Launching EclipseOpen a Terminal window. Enter eclipse on the commandline. You can optionally explore the various icons as you wish. The next time you run Eclipse, you will not be shown this welcome workspace, but all of the information it contains can be found elsewhere.

How do I run eclipse as administrator on Mac?

Switch to an administrator within Terminal.Enter the command su - followed by a space and an administrator's username on this computer. Enter that administrator's password. You are now operating as that user.


1 Answers

./eclipse -data <workspace-path> (see also How do I run Eclipse in the Eclipse Wiki).

like image 174
Fabian Steeg Avatar answered Sep 21 '22 14:09

Fabian Steeg