Antをコマンドラインから実行していますが、ビルド失敗します。
ant -f builde.xml
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.8.0_77\lib\tools.jar
compile:
[javac] C:\Users\MT\Desktop\builde.xml :6: warning: 'includeantruntime' was not set, defaulting to build.sysclaspath=last; set to false for repeatable builds
BUILD FAILED
C:\Users\MT\Desktop\builde.xml :6: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre1.8.0_77"
<builde.xml>
<?xml version="1.0" encoding="Shift_JIS" ?> <project name="antsample" default="compile"></project><target name="compile"> <javac srcdir=".\src" destdir=".\class" /> </target>
どうしてエラーになるのでしょうか?
よろしかったらお教えください。
Antを勉強中です。
今までの他のbuild.xmlを実行できました。
srcフォルダとclassフォルダは作成してあり、srcフォルダにはtest.javaが用意されていますが、
エラーメッセージが変わりません。
困りました。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。