On Windows and Linux, you can start Eclipse via:
eclipse(.exe) fileToBeOpened.txt
to start Eclipse and automatically open a file, or open it in an existing instance and give focus.
On MacOS, this does not work (tested on MacOS 14 (Sonoma) and MacOS 12 (Monterey)):
-When no instance is running, Eclipse starts but no file is opened
-When an existing instance is running, executing the command tries to start another instance and then complaining about the workspace being in use...
To test, go to Eclipse.app/Contents/MacOS
and run the command (for example):
./eclipse ../Eclipse/eclipse.ini
On Windows and Linux, you can start Eclipse via:
eclipse(.exe) fileToBeOpened.txt
to start Eclipse and automatically open a file, or open it in an existing instance and give focus.On MacOS, this does not work (tested on MacOS 14 (Sonoma) and MacOS 12 (Monterey)): -When no instance is running, Eclipse starts but no file is opened -When an existing instance is running, executing the command tries to start another instance and then complaining about the workspace being in use...
To test, go to Eclipse.app/Contents/MacOS and run the command (for example):
./eclipse ../Eclipse/eclipse.ini