1

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.

2
  • Did you look at man eclipse?
    – guntbert
    Jan 3, 2018 at 14:37
  • @guntbert no man eclipse does not work. Jan 3, 2018 at 14:55

1 Answer 1

5

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

5
  • The -data command you are passing is it eclipse specific terminal command, any relevant resource regarding this answer would be good. Jan 4, 2018 at 5:37
  • Yes, it is eclipse specific. Link to all eclipse command line arguments added.
    – Alex
    Jan 5, 2018 at 8:01
  • Would you mind to accept my answer if it solves your problem ?
    – Alex
    Jan 5, 2018 at 15:24
  • Hi, does eclipse command by default be available in system or need to install any additional things apart from Eclipse IDE? @Alex
    – Rama Rao M
    May 5, 2023 at 17:38
  • @RamaRaoM 'eclipse' is the eclipse binary, not just some command. So yea, if you install the Eclipse IDE, you should have the eclipse binary.
    – Alex
    May 6, 2023 at 18:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .