linux :: Opensuse 12.3 :: 安装 Apache Cordova
大家好!我想ant
在 cli 中运行命令,但它给了我一个错误:
Unable to locate tools.jar. Expected to find it in /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/lib/tools.jar
Buildfile: build.xml does not exist! Build failed
我安装了java:
linux-s3z2:/srv/www/htdocs/cordova # java -version
java version "1.7.0_40"
OpenJDK Runtime Environment (IcedTea 2.4.1) (suse-8.18.1-x86_64)
OpenJDK 64-Bit Server VM (build 24.0-b50, mixed mode)
我的 echo $PATH 看起来像这样
linux-s3z2:/srv/www/htdocs/cordova # echo $PATH
/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin /X11:/usr/X11R6/bin:/usr/games:/home/gdia/Documents/sdk/apache-ant-1.9.2/bin/
所以/home/gdia/Documents/sdk/apache-ant-1.9.2/bin/
Apache ant 有一个“ant”文件,我不明白为什么它在其他地方寻找?