Redirect stdin from a file in eclipse with run configuration

后端 未结 3 1031
醉酒成梦
醉酒成梦 2020-12-19 03:31

There used to be a bug in eclipse that prevented a run configuration from redirecting a file to stdin but supposedly it\'s fixed. However, I can\'t find any documentation t

3条回答
  •  情歌与酒
    2020-12-19 04:12

    You will need Eclipse Mars for this, as the bugfix was not backported.

    Go into Run Configurations, open your Java Application. In the Common tab, there is a Standard Input and Output group, where you can define an input file.

提交回复
热议问题