Installing Apache JMeter

Apache JMeterをインストールする

System Requirements

動作環境

Installing Apache JMeter

Apache JMeterをインストールする

If your system meets the above requirements, thanks to the beauty of Java you don't have to do anything else: under the directory /bin you will find the binary application and the system wrappers you need to run Apache JMeter. You may want to go the running instructions to continue.

お使いのシステムが上記の要求を満たしていれば、Javaのすばらしさのおかげで 他に何もすることはありません: /binディレクトリの下に、 バイナリーアプリケーションとApache JMeterを実行するのに必要なシステムラッパーを 見つけられるでしょう。引き続き実行に関する説明に進んでください。

If the precompiled binary doesn't match your system (Swing package incompatibility) or you simply want to recompile the source code, you may use the makefile that matches your operating system under the directory /src or do it by hand.

コンパイル済みのバイナリーがシステムに合わない (Swingパッケージに互換性がない)場合や、 ソースコードをコンパイルしなおしたい場合は、/srcディレクトリにある、 お使いのOSにあったmakefileを使って、手動でコンパイルすることができます。

Using ant

antを使う

JMeter has been configured to use the ant makefile replacement from the jakarta project. To build with ant:

JMeterは、jakartaプロジェクトが生み出した antのmakefileを代わりに使用するように設定されています。antを使ってビルドするには:

Using makefiles

makefileを使う

Under both UNIX and Windows systems, building Apache JMeter is very simple:

UNIXやWindowsでは、Apache JMeterを簡単にビルドできます:

Since those makefiles assume you have both javac and javadoc installed in your path, if this is not the case or you simply want to use other tools, you have to edit those files by hand and follow internal instructions.

makefileは、javacjavadocがパスの通っている場所にインストールされていると 仮定するので、もしそうでなかったり、他のツールを使用したい場合は、 ファイルの中に書いてある指示に従い、手でファイルを編集する必要があります。

When the make process is complete, a file named ApacheJMeter.jar will be placed under the /bin directory. You may go to next section to see how to start the application you just built.

makeが完了すると、ApacheJMeter.jarという名前のファイルが/binディレクトリの 下にできます。ビルドしたアプリケーションを立ち上げる方法を知るには、 次の章に行きましょう。

Doing it by hand

手動で行う

This section assumes knowledge about Java compilers and Java tools, such as javac, javadoc and jar.

このセクションでは、javacjavadocjarといった、 JavaコンパイラーとJavaのツールについて知識があることを想定しています。

First thing you have to do is to compile the source files. To do this, you create a temporary directory (say ./src/temp), more to the /src directory and execute the following command (all in one line)

まず最初にソースファイルをコンパイルしなければいけません。 コンパイルするにはまず一時ディレクトリ (たとえば./src/temp) を作り、 /srcディレクトリへ移動して以下のコマンドを実行します(すべて一行で記述します)

javac -d ./temp ./org/apache/jmeter/timers/*.java ./org/apache/jmeter/visualizers/*.java ./org/apache/jmeter/samplers/*.java ./org/apache/jmeter/*.java

This should create all the right class files under the ./temp directory. If this doesn't work, check to see if the package swingall.jar resides in your classpath and if the Swing classes reside under the com.sun.java.swing directories.

これで、適切なクラスファイルが./temp ディレクトリの下にできます。 もし動作しなければ、swingall.jarパッケージがクラスパスに存在するか、 Swingクラスがcom.sun.java.swingディレクトリの下にあるかチェックしてください。

When your done compiling the classes, you should copy all resources in the right place executing

クラスをコンパイルし終えたら、すべてのリソースを適当な場所にコピーします

cp ./org/apache/jmeter/images/* ./temp/org/apache/jmeter/images/*
cp ./org/apache/jmeter/*.properties ./temp/org/apache/jmeter/*.properties

(of course windows users should change this a little to match system settings). Now you are ready to build the jar archive by typing

(もちろんwindowsユーザーはシステムの設定に応じて若干変更してください)。 さあ、以下のようにタイプして、jarアーカイブをビルドしましょう

jar cmf0 ./MANIFEST ../bin/ApacheJMeter.jar ./temp/.

that will create the archive.

これでアーカイブができます。

To create the javadoc documentation simply type this other command

javadocドキュメントを作るには、以下のコマンドを打つだけです

javadoc -d ..\docs\api org.apache.jmeter org.apache.jmeter.timers org.apache.jmeter.visualizers org.apache.jmeter.samplers

Now that everything is built, just go on to the next section to see how to run it.

さあ、すべてビルドされました。実行方法を知るため、 次の章へ行きましょう。

Copyright (c) 1998-99 The Java Apache Project.
$Id: installing.html,v 1.1.1.1 2003/04/14 11:47:27 ami Exp $
All rights reserved.