how to stop Eclipse browser from displaying web pa

2019-04-05 19:03发布

问题:

The old eclipse bug which is very annoying for me.

The situation: I stop tomcat server => run web application again => get browser window. The problem is that browser window is displayed earlier before the redeployment process finishes itself, so whenever I try to close the browser window(since I prefer to open web application in standard browser since the native is laggy and slow) in that short interval, my Eclipse hangs with error message window:

Script Error: An error has occurred in the script on this page

Line: 1

Char: 1

Error: Unspecified error

URL: about:blank

Do you want to continue running scripts on this page?

Yes No

The problem is that application hangs plus the window is inactive and I can't make this window active.

To fix this I have to end the process and shutdown tomcat manually on .bat. This is very annoying when you repeat this around ten times a day.

It doesnt happen if I wait till the application is completely redeployed, but I have habit of working fast, so eventually I close the window again before redeployment.

The help could be either in:

  1. how to forbid eclipse showing browser window tab when web application is redeployed?

  2. or how to fix this error?

Thank You guys,

回答1:

Aubergine, I've had the same experience as you. Here's one answer for selecting the external browser:

You can choose another browser as your default by changing preferences in Eclipse. Select Window > Preferences > General > Web Browser. Now choose the option "Use External Web Browser", and check the checkbox for the browser you use in the box below.