open eclipse from a terminal and pass a workspace to open

20,030

The following should do:

eclipse -data /home/user/path/to/workspace

Here a list of all eclipse command line arguments.

Alternatively, if you anyhow only have one workspace, you could select a workspace in the dialog and check the box "Use this as the default and do not ask again".

Share:
20,030
Taleev Aalam
Author by

Taleev Aalam

Updated on September 18, 2022

Comments

  • Taleev Aalam
    Taleev Aalam over 1 year

    I want to open eclipse through terminal and i am able to do it, but when when eclipse starts it asks for the workspace directory attached the screenshot,and then there i have to specify it, i dont want this.

    enter image description here

    As i pass the eclipse command in the terminal, i want to pass the workspace directory along with the eclipse command followed by OK as prompt ask for it.

    Thanks in advance.

    • Taleev Aalam
      Taleev Aalam over 6 years
      @guntbert no man eclipse does not work.
  • Taleev Aalam
    Taleev Aalam over 6 years
    The -data command you are passing is it eclipse specific terminal command, any relevant resource regarding this answer would be good.
  • Alex
    Alex over 6 years
    Yes, it is eclipse specific. Link to all eclipse command line arguments added.
  • Alex
    Alex over 6 years
    Would you mind to accept my answer if it solves your problem ?