How to disable autoopen internal webbrowser after run webapp?

徘徊边缘 提交于 2019-11-30 07:55:23

问题


When I run web app on server in STS internal web browser opens. I want to disable this but I don't know where can I do this.


回答1:


Eldelshell already sort of answered this, but I think a little more info might help other people. He's correct about going to Window -> Preferences -> General -> Web Browser and creating a new external external browser configuration. This will only work with an executable, though. Thus, entering /dev/null in the "Location" field won't work. What to put there depends on which type of operating system you're on, but basically you want to specifiy a command that doesn't do much. I use:

  • for *nix based systems: /bin/true (does nothing, successfully: reference)
  • for Windows systems: cmd /c (spawns a shell and terminates immediately: reference)

Here's what it looks like to add the web browser configuration in Eclipse Neon. Note that after adding the configuration, you also need to activate it by checking the adjacent checkbox in the parent dialog.




回答2:


For Mac,

Go to Window->Preferences->General->Web Browser; create a new "browser" pointing to /usr/bin/true.




回答3:


Go to Window->Preferences->General->Web Browser and select an external browser. If it still annoys you, create a new "browser" pointing to /dev/null



来源:https://stackoverflow.com/questions/5007981/how-to-disable-autoopen-internal-webbrowser-after-run-webapp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!