Warning: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/users/2/moriya-h5/web/confrage/dos/batch/javac1/javac1.html on line 2

Warning: include_once(http://www.confrage.com/bin/header.php): failed to open stream: no suitable wrapper could be found in /home/users/2/moriya-h5/web/confrage/dos/batch/javac1/javac1.html on line 2

Warning: include_once(): Failed opening 'http://www.confrage.com/bin/header.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/dos/batch/javac1/javac1.html on line 2
1つのバッチファイルでjavaのコンパイルを実行する | コマンドプロンプト | 株式会社CONFRAGE
Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/menu.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/dos/batch/javac1/javac1.html on line 17

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/menu.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/dos/batch/javac1/javac1.html on line 17
1つのバッチファイルでjavaのコンパイルを実行する
今度は1つのバッチファイルでjavaのコンパイルを実行するバッチファイルを作成します。
バッチファイルの保存場所は以下のようにします。

C:¥java¥java1.bat
まずjava1.batをダブルクリックで起動します。以下はjava1.batの中身です。

@echo off
C:
if exist C:¥java¥nul (
  cd C:¥java
  start /b /wait javac *.java
)
pause
java1.batの中でC:ドライブに移動し、C:¥javaフォルダが存在すればそのフォルダに移動し、startコマンドを使用してそのフォルダ配下の全てのjavaファイルをjavacコマンドをコンパイルしています。
/b オプションで新しいウィンドウを開かないようにしています。
また、 /wait オプションでjavacコマンドが終了するのを待ってます。
javacコマンドが終了し、エラーなどのメッセージが出力されてから、pauseコマンドを実行しますので、javacコマンドの結果を見ることができます。

startコマンドの詳しい使い方はこちらを見てください。
pauseコマンドの詳しい使い方はこちらを見てください。

Back to top

Information

Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/side_bar.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/dos/batch/javac1/javac1.html on line 75

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/side_bar.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/dos/batch/javac1/javac1.html on line 75

Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/seo.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/dos/batch/javac1/javac1.html on line 84

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/seo.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/dos/batch/javac1/javac1.html on line 84