Article - Manually setting up Squish for Java

Skip to end of metadata
Go to start of metadata

Table of Contents

Manually setting up Squish for Java 6.1 and higher

Manually setting up Squish for Java 6.0.x, 64-bit on Linux

The following steps are not supported for Squish for Java 6.1.x and higher.

Sometimes it is required to set up Squish without using its setup program. The following instructions explain how to do this for Squish for Java 6.0.x.

Step 1 - Create a file called .squish-3-license in the home directory of the user (typically %USERPROFILE% on Windows, and $HOME on Unix) and insert the Squish license key into it.

Step 2 - Delete <SQUISH_DIR>/bin/.not_configured

Step 3 - Generate <SQUISH_DIR>/lib/squishrt.jar:

Execute in a shell

Step 4 - Create entry "JavaHooking" in <SQUISH_CONFIG>/ver1/server.ini

Execute in a shell; while in Squish folder

Step 5 - Create entry JavaVM in <SQUISH_CONFIG>/ver1/server.ini

Execute in a shell; while in Squish folder

Step 6 - Create entry JavaVersion in <SQUISH_CONFIG>/ver1/server.ini

Execute in a shell; while in Squish folder

(<JAVA_VERSION_STRING> stands for the version string output by "java -version" of the JRE executing the application, for example "1.8.0_71" (without double quotes).)

Step 7 - Create entry JavaWebStart in <SQUISH_CONFIG>/ver1/server.ini

Execute in a shell; while in Squish folder

Step 8 - Create entry LibJVM in <SQUISH_CONFIG>/ver1/server.ini

Execute in a shell; while in Squish folder

Manually setting up Squish for Java 6.0.x on Windows

The following steps are not supported for Squish for Java 6.1.x and higher.

Sometimes it is required to set up Squish without using its setup program. The following instructions explain how to do this for Squish for Java 6.0.x.

Step 1 - Create a file called .squish-3-license in the home directory of the user (typically %USERPROFILE% on Windows, and $HOME on Unix) and insert the Squish license key into it.

Step 2 - Delete <SQUISH_DIR>\bin\.not_configured

Step 3 - Generate <SQUISH_DIR>\lib\squishrt.jar:

Execute in cmd.exe

Step 4 - Create entry "JavaHooking" in <SQUISH_CONFIG>\ver1\server.ini

Execute in cmd.exe; while in Squish folder

Step 5 - Create entry JavaVM in <SQUISH_CONFIG>\ver1\server.ini

Execute in cmd.exe; while in Squish folder

Step 6 - Create entry JavaVersion in <SQUISH_CONFIG>/ver1/server.ini

Execute in cmd.exe; while in Squish folder

(<JAVA_VERSION_STRING> stands for the version string output by "java -version" of the JRE executing the application, for example "1.8.0_71" (without double quotes).)

Step 7 - Create entry JavaWebStart in <SQUISH_CONFIG>\ver1\server.ini

Execute in cmd.exe; while in Squish folder

Step 8 - Create entry LibJVM in <SQUISH_CONFIG>\ver1\server.ini

If <JAVA_DIR>\bin\client\jvm.dll exists:

Execute in cmd.exe; while in Squish folder

If <JAVA_DIR>\bin\client\jvm.dll does not exist, but <JAVA_DIR>\bin\server\jvm.dll exists:

Execute in cmd.exe; while in Squish folder

Here is a batch file that can be put into the Squish folder and which performs the above steps. Prior to use it must be edited to have proper values for ARG_JAVA_DIR and ARG_JAVA_VERSION_STRING: setup-squish-java.bat

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.