JavaのアプリケーションをWindowsのサービスとして登録するには JavaServiceを使う方法がある。 http://forge.objectweb.org/projects/javaservice/ オプション -install サービス名 インストールする -start 実行するクラス名 -current 実行ディレクトリ -out System.out の出力先ファイル(日本語パス不可) -err System.err の出力先ファイル(日本語パス不可) -manual or -auto サービスのスタートアップの種類 -description サービスの詳細 クラスパス -Djava.class.path にて設定する サービス登録例 {{div_begin class="pre"}} JavaServiceDebug.exe -install SampleService d:\j2sdk1.4.2_10\jre\jre\bin\server\jvm.dll -Djava.class.path=G:\temp\SampleService.jar -start org.objectweb.javaservice.test.Sample Service -params start memory -out G:\temp\stdout.log -err G:\temp\stderr.log -current G:\temp\ -manual -description "Sample Java Service" {{div_end class="pre"}} サービス削除例 JavaServiceDebug.exe -uninstall SampleService {{category2 プログラミング言語,Java}}