我在Mac OSX Mountain Lion上安装了jdk 6,我可以直接从eclipse创建新的java项目。import ant build.xml to eclipse说在目标“编译”中找不到“javac”任务
我试图修改亚历克斯·霍姆斯编写的代码json-mapreduce (https://github.com/alexholmes/json-mapreduce)。我的第一个目标是将代码放入eclipse构建中,以便调试代码。 我做了以下内容:
Launch Eclipse -> File -> New Project -> New project from ant build file
-> select the build.xml downloaded from the above link
它抛出以下错误:
<> "javac" task not found in target "compile"
<> "java" task not found in target "test"
Eclipse中显示的代码,但没有做任何建立或正在运行的任何测试。由于上述错误,似乎有些事情出错了,但是我可以看到在eclipse中创建的其他java项目工作正常。
(Eclipse中显示已安装的JRE位置:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
)
欣赏的任何想法。
你能检查这些程序的位置吗? –
@SotiriosDelimanolis,我验证了JRE的位置,并且eclipse使用了相同的JRE位置。 – Kiran
它是否从Eclipse之外的命令行运行? –