2 u012272641 u012272641 于 2014.08.11 10:32 提问

ant运行报错NoClassDefFoundError

执行ant -version报错:

java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain

%ANT_HOME%

D:\apache-ant-1.8.4

%CLASSPATH%

D:\apache-ant-1.8.4\lib

%PATH%

C:\Program Files\Java\jdk1.8.0\Bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\Program Files\TortoiseSVN\bin;C:\Program Files\maven\bin;C:\Program Files\Java\jdk1.8.0\Bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\Program Files\TortoiseSVN\bin;C:\Program Files\maven\bin;D:\apache-ant-1.8.4\bin 
Csdn user default icon
上传中...
上传图片
插入图片