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.

  • Did you look at man eclipse? – guntbert Jan 3 '18 at 14:37
  • @guntbert no man eclipse does not work. – Taleev Aalam Jan 3 '18 at 14:55

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".

  • The -data command you are passing is it eclipse specific terminal command, any relevant resource regarding this answer would be good. – Taleev Aalam Jan 4 '18 at 5:37
  • Yes, it is eclipse specific. Link to all eclipse command line arguments added. – Alex Jan 5 '18 at 8:01
  • Would you mind to accept my answer if it solves your problem ? – Alex Jan 5 '18 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.