I went for J2SDK, because I'll do some java development on that machine as well, but that shouldn't make any difference regarding this howto.
Option #1 - Using Blackdown Java 1.4.2:
Code: Select all
# install the SDK package:
apt-get install j2sdk1.4
# get some necessary prerequisites:
apt-get install build-essentials libxp6 libxt6 libxext6 libxtst6 libc6
# Download JMeter:
wget http://mirror.deri.at/apache/jakarta/jmeter/binaries/jakarta-jmeter-2.2.tgz
# ....and unpack it:
tar -xzf jakarta-jmeter-2.2.tgz
------- AddOns ---------
Add extensions - BeanShell, MailerVisualizer:
- Download JavaMail API here.
- Download JavaBeans Activation Framework here.
- Download BeanShell interpreter:
wget http://www.beanshell.org/bsh-2.0b4.jar
Unpack them and put "mail.jar", "activation.jar" and "bsh*.jar" into JMeter's /lib/ directory.
Add automation support: Ant & JMeter
If you want to automagically execute JMeter testplans, you might want to install "Jakarta Ant", too:
Code: Select all
apt-get install ant ant-optional
Option #2 - Using Sun's Java / binary installer:
In order to install Sun's java cleanly, we'll make a .deb package out of the .bin downloadbable from sun.
(Instructions for installing Sun's Java like that were taken from this forum entry by Adamal)
Code: Select all
# 1) Start by downloading the binary installer from sun
# (e.g. "jdk-1_5_0_09-linux-i586.bin")
# 2) Get some prerequisites:
sudo apt-get install build-essential fakeroot java-package java-common
# FakeRoot is needed for creating the package - Info: http://linux.about.com/cs/linux101/g/fakeroot.htm
# 3) Make a Debian package:
fakeroot make-jpkg jdk-1_5_0_09-linux-i586.bin
# 4) Install the package:
sudo dpkg -i sun-j2sdk1.5_1.5.0+update09_i386.deb
# 5) Set the default java interpreter to be Sun's:
sudo update-alternatives --config java