This might just be a bias of mine – but I don’t think the best place to put Maven or Ant is in AppData/Roaming. Maven and Ant are both in there, and are the elements you seem to be having issue with. I’d move them out, even if just to test. I’d say put either in Program Files, or at the C: root (C:\apache-ant-1.9.6 is where I have it on one machine), and change your paths accordingly.
Just a thought. Dana Irvin (Dirv) | Sr Software Engineer | Ingenicomm, Inc. | <mailto:dir...@ingenicomm.com> dir...@ingenicomm.com From: Andrew Leach [mailto:imamushr...@gmail.com] Sent: Monday, October 12, 2015 2:34 PM To: Log4CXX User Subject: Re: Help with first C++ program to do logging > This class is in ant.jar, which is e.g. in my installation folder > "C:\Program Files (x86)\Apache Ant\lib". The "bin" folder of that is > in my path and contains some ant.bat which deals with things like > ANT_HOME, classpath and such. Have a look at that. I don't remember > anymore how I set up my ANT and currently don't have the time to play > with that, sorry. I'm not saying that there isn't anything wrong with my ANT setup however, I can't see what could be wrong. I present my environment variables to prove that I've done what I believe to be correct. C:\Users\ypx7647\Downloads\apache-log4cxx>echo %PATH% C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x8 6)\Common Files\Microsoft Shared\Windows Live;C:\windows\system32;C:\windows;C:\ windows\System32\Wbem;C:\Program Files (x86)\Windows Live\Shared;C:\Program File s (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Microsoft SQ L Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Bin n\;C:\Users\ypx7647\AppData\Roaming\Apache\apache-maven-3.3.3\bin;C:\PROGRA~1\Ja va\jdk1.7.0_75\bin;C:\"Program Files (x86)"\Notepad++;C:\Program Files (x86)\Gtk Sharp\2.12\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Calibre2\ ;C:\Program Files\Exercism\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn \;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\M icrosoft SDKs\TypeScript\1.0\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\ Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\wbin;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program File s (x86)\Toshiba\Bluetooth Toshiba Stack\sys\;C:\Program Files (x86)\Toshiba\Blue tooth Toshiba Stack\sys\x64\;C:\Program Files (x86)\Intel\Services\IPT\;C:\Progr am Files (x86)\GNU\GnuPG\pub;C:\Program Files (x86)\Skype\Phone\;C:\Program File s (x86)\QuickTime\QTSystem\;%USERPROFILE%\.dnx\bin;C:\Program Files\Microsoft DN X\Dnvm\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\P rogram Files (x86)\Git\cmd;C:\Users\ypx7647\AppData\Roaming\Apache\apache-ant-1. 9.6\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WinPython-64bit-2.7.6.4\python-2. 7.6.amd64;C:\phantomjs-1.9.8-windows;C:\n1k0-casperjs-4f105a9\bin;C:\MinGW\bin\; C:\MinGW\msys\1.0\bin\;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bi n; C:\Users\ypx7647\Downloads\apache-log4cxx>echo %ANT_HOME% C:\Users\ypx7647\AppData\Roaming\Apache\apache-ant-1.9.6 C:\Users\ypx7647\Downloads\apache-log4cxx>echo %CLASSPATH% C:\Users\ypx7647\Downloads\apache-log4cxx>dir %ANT_HOME%\lib\ant.jar Volume in drive C is Volume Serial Number is Directory of C:\Users\ypx7647\AppData\Roaming\Apache\apache-ant-1.9.6\lib 29/06/2015 06:45 2 029 794 ant.jar 1 File(s) 2 029 794 bytes 0 Dir(s) 33 850 724 352 bytes free Anyone any other ideas? -Andrew ------- Internet communications are not secure and therefore Andrew Leach does not accept legal responsibility for the contents of this message. The information contained in this email is private, personal and confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. This email and any attachments have been automatically scanned for viruses prior to dispatch, but we make no warranty that they are free from computer viruses. You are advised to check all emails and attachments using your own anti virus software before opening or executing them. On 12 October 2015 at 22:12, Thorsten Schöning <tschoen...@am-soft.de> wrote: Guten Tag Andrew Leach, am Montag, 12. Oktober 2015 um 21:23 schrieben Sie: > It's seems there's a problem with the maven-antrun-plugin v1.7. I > seen numerous issues like the one I'm experiencing when I did a search on the > web. This still looks like your ANT is wrongly setup or simply not available. > [WARNING] Error injecting: org.apache.maven.plugin.antrun.AntRunMojo > java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException This class is in ant.jar, which is e.g. in my installation folder "C:\Program Files (x86)\Apache Ant\lib". The "bin" folder of that is in my path and contains some ant.bat which deals with things like ANT_HOME, classpath and such. Have a look at that. I don't remember anymore how I set up my ANT and currently don't have the time to play with that, sorry. Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon...........05151- 9468- 55 Fax...............05151- 9468- 88 Mobil..............0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.6172 / Virus Database: 4435/10782 - Release Date: 10/08/15