1

I encountered this error when I just start the server. Here's the code:

server = Server(r"path\to\browsermob-proxy")
server.start()

Then it stopped and raised an error like this:

browsermobproxy.exceptions.ProxyServerError: The Browsermob-Proxy server process failed to start. Check <_io.TextIOWrapper name='C:\...\server.log' mode='w' encoding='cp936'>for a helpful error message.

The log file seems not providing anything helpful. It just said that 'java' is not recognized as an internal or external command, operable program, or batch file.

I've been stuck here for too long. Can Anybody give me a feasible solution? Many thanks!!!

Dexter
  • 11
  • 3

1 Answers1

0

I came across with this yesterday, same error in the log. This is caused by either the operation system has not installed java or java has not added to path. Simply type "java" in CMD or terminal to confirm the same problem. Then install java and add the path containing the java runtime to PATH.

Tempo810
  • 162
  • 7