Procedure 2.1. Windows Installer Installation
Double click on the MJP Windows Installer file (*.msi) and follow the instructions.
Select Mike's Java Profiler from the Windows Start menu.
Procedure 2.2. Tarball Installation
Unpack the tar-ball into a location of your choosing.
Add MJP_HOME/bin to your PATH environment variable. Besides making it easier to execute MJP from the command line, this is required on Windows for the Java Virtual Machine to find the MJP profiler agent DLL.
If you're operating system is Linux, set the environment variable LD_LIBRARY_PATH to MJP_HOME/lib. This is required on Linux for the Java Virtual Machine to find the MJP profiler agent.
Do either of the following:
Procedure 2.3. Wrapper script method
Set the MJP_HOME environment variable to the root directory where you installed MJP. On some operating systems the MJP wrapper scripts can guess MJP_HOME (UNIX dialects and Windows NT/2000) - but it is better to not rely on this behavior.
Set the JAVA_HOME environment variable to the location of a JRE version 1.4 or newer.
If you operating system is Windows, execute MJP_HOME/bin/mjp.exe. If your operating system is Linux, execute MJP_HOME/bin/mjp
Procedure 2.4. JAR file method (Windows only)
Ensure that a JRE version 1.4 or newer is installed in your Windows system directory (e.g. C:/WINNT/system32).
In Windows Explorer, double-click on MJP_HOME/lib/mjpgui.jar.
Example 2.1. Windows Installation
Assume MJP is installed in C:/mjp and a JAVA JDK 1.4.0 is installed in C:/j2sdk1.4.0.set MJP_HOME=C:\mjp set JAVA_HOME=C:\j2sdk1.4.0 set PATH=%MJP_HOME%\bin;%PATH%