蚂蚁无法找到javac的。无论我做什么它总是声称JAVA_HOME是" C:\\ Program Files文件\\的Java \\ JRE6" [英] Ant can't find Javac. No matter what I do it always claims JAVA_HOME is "C:\Program Files\Java\jre6"
问题描述
...这是错误的。
这是我得到的错误:
构建失败
C:_TraderPlatform \\客户\\打开\\打开\\的Java \\小程序\\ PPDataTransporter \\ nbproject文件\\ build-impl.xml中:338:执行此线出现以下错误:
C:_TraderPlatform \\客户\\打开\\打开\\的Java \\小程序\\ PPDataTransporter \\ nbproject文件\\ build-impl.xml中:158:无法找到javac编译器;
com.sun.tools.javac.Main不在类路径中。
也许JAVA_HOME不指向JDK。
这是当前设置为C:\\ Program Files文件\\的Java \\ JRE6
我已经设置JAVA_HOME称为一个环境变量指向:C:\\ Program Files文件\\的Java \\ jdk1.6.0_12
I've set an environment variable called JAVA_Home to point to: "C:\Program Files\Java\jdk1.6.0_12"
程序Javac.exe绝对是的 C:\\ Program Files文件\\的Java \\ jdk1.6.0_12 \\ BIN
Javac.exe is definitely in C:\Program Files\Java\jdk1.6.0_12\bin
我在我的PATH变量拿到%JAVA_HOME%\\ bin中。
I've got %JAVA_HOME%\Bin in my PATH variable.
我搞乱与周围下HKLM \\ SOFTWARE \\ JavaSoft的各种的JavaHome'设置,现在我完全卡住了。
I've mucked around with the various 'JavaHome' settings under HKLM\SOFTWARE\JavaSoft and I'm now utterly stuck.
所有我想做的就是使用NetBeans的敲了该项目的build.xml构建从命令行的Java小程序。
All I wanted to do was build a Java applet from the command line using the build.xml that netbeans had knocked up for the project.
任何想法,任何人?
推荐答案
好了ANT现在的作品。
Well ANT now works.
我做了什么?
我删除从C:\\ Program Files文件和重新安装入C:\\蚁族
I removed it from c:\program files and 'reinstalled' it into "c:\ant"
好像它不喜欢非8.3的文件名或目录。
Seems like it doesn't like non 8.3 filenames or directories.
有趣的是我这样做只是因为我误解了建议ANT不应该在非8.3格式的位置上95/98 / ME说明书的一部分。我没有发现的OS参考,并给它一展身手。我运行Vista。
Funnily enough I did this only because I misread the part of the manual that suggested ANT shouldn't be in non 8.3 style locations on 95/98/ME. I didn't spot the OS reference and gave it a go. I'm running Vista.
哦...
感谢您的帮助球员。
这篇关于蚂蚁无法找到javac的。无论我做什么它总是声称JAVA_HOME是" C:\\ Program Files文件\\的Java \\ JRE6"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!