Squish IDE not starting after installation of HP QuickTest Professional (QTP)

Last edited on

Error caused by QTP hooking/environment variables

It seems that installing HP QuickTest Professional (QTP) can have undesirable effects on other Java applications, especially ones based on SWT or Eclipse, like the Squish IDE, where QTP installation can lead to this error message at startup:

org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed)

...

Caused by: org.eclipse.swt.SWTException: Widget is disposed:

...

at com.mercury.ftjaddin....

The problem seems to be documented on the web, for example...

Not able to run Eclipse Application. Can't even start Eclipse IDE.

You should contact HP for details on what the QTP installation does and how to fix this problem.

Working around this issue is basically a matter of setting a set of environment variables before running the Squish IDE. On Windows you could create a batch file with the following content

set IBM_JAVA_OPTIONS=
set _JAVA_OPTIONS=
set _classload_hook=
set JAVA_TOOL_OPTIONS=
\path\to\squishide\squishide.exe

Note that you have to put in the real path to the Squish IDE installation on your system in the last line. For starting the IDE you then run that batch file.

Error caused by QTP affecting the Squish IDE workspace

You may also be getting the following error:

java.lang.ClassNotFoundException: com.mercury.javashared.agentloader.AgentBootstrap

In this case the above solution should be applied.

And in addition cleaning the internal (persistent) caches of the Squish IDE might help. To do this start squishide(.exe) once with the parameter "-clean":

"<squish_ide_dir>\squishide" -clean