Ant command wont work

Hi all
Could someone please tell me, do I have to set a classpath for ant. Because when I type the ant command I get this error
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant
Main
Ive set the classpath to go to C:\ant\lib still dont work. Where have I gone wrong.

Setting the directory in the classpath is not enough. You have to set the jar file as well, e.g.:
set CLASSPATH=%CLASSPATH%;c:\ant\lib\ant.jar.
/Stephane

Similar Messages

  • I find I am unable to print any photo because the program "Can't find a theme and the Print command wont work without at least one theme. How can I overcome this problem?

    I find I am unable to print any photo because the program "Can't find a theme and the Print command wont work without at least one theme. How can I overcome this problem?

    reinstall iPhoto
    see this discussion down a few from your post
    https://discussions.apple.com/thread/5426566?tstart=0
    LN

  • The "java" command wont work

    Hi,
    I have been running my java programs from the console all this while by typing "java " and then the complied class name and everything had been going on fine until this moring when I tried running a prog I'm currently working on and it gave the kind of error message you get when your class file doesnt have a main method in it i.e exception in"main" thread noclassdefintionfound bla bla bla. I tried several other programs that had always been fine and still the same thing. I've also tried installing java still the same thing.
    the javac command and java command are both recognized but it is like it no longer reconizes all the class files
    pls how can i get my prog to run again
    thanks
    abiose

    Check whether all those files are available in the classpath in your console. Check for the variable CLASSPATH in the system environments and find if it contains the path where all your class files are residing and try it out.
    ggs

  • My mouse commands wont work

    Despite changing to new batteries in my wireless mouse, or even using an old mouse, it won't perform any commands such as opening Safari. The mouse pointer is onscreen, but clicking on any icons etc has no effect.
    This has happened since I recharged my e-reader via USB which was dead.
    I have a 10 month old Intel iMac with wireless mouse/keyboard and have the latest updates apart from Yosemite.
    Any ideas appreciated.

    Panic over! Narrowed it down to a mouse malfunction...all is working OK.

  • My camera app wont work on my ipad2. i open the app ant the shutter stays closed. i am on ios 5 if that matters. help?

    my camera app wont work on my ipad2. i open the app ant the shutter stays closed. i am on ios 5 if that matters. help?
    thx
    -arose369

    First, double tap the home key and close off any apps that are in the task bar.  You are really looking for an earlier instance of camera or photobooth that is still there.  Then reboot the pad.  Hold the sleep and home buttons until the apple logo appears.  Ignore the red slider. 
    Then try the app again. 
    This has been happening off and on well before ios 5. 

  • I have a dilema i use a programme called Mackeeper i accidentally moved several files to my trash,i would like to put the files back where they belong but put back option is in grey and wont work??

    I have a dilema i use a programme called Mackeeper i accidentally moved several checked files to my trash BUT i didnt delete them,i would like to put the files back where they belong but the put back option is in grey and wont work?? i have spoken to Apple and to no avail !!!
    Mackeeper moved my files to my trash so i pulled them out of my trash to my desktop it has copied them to my desktop as well as kept them in my trash!!
    im so confused and things are not working properly anymore such as my google chrome for example...all my book marks are gone BUT i can go to the google file which is out of place on my desktop and view all my bookmarks data...ALL of my files still exist but they are just out of place now which is making it hard for certain options on my computer to work...
    the files includeAccounts,address book plug-ins,addressbook,Adobe,AIM,Alfred,Anquet Maps,Apple,Asramsoftware,Audio,Automatically add to itunes,facebook,facebook 15-53-13-329,faxfresh,five details,flipping book photo album, font collections, fonts, forismatic,Garageband,Gimp,Google,Google 15-53-13-344,icloud,icons,idocument lite,ilife media browser,ilifepage layout,internet plug-ins,ip scanner,itext express,itunes,iweb,Keyboard layouts,Keychains,launch agents,Librarian,limit point software,logs,mail,mail 15-53-13-895,messages,metadata,mobile documents,mobiscope,moso,movie effects,mozilla,MPlayerx,mywebcamBroadcaster,Native instruments,Skype and LOADS more......
    HOW do i get this stuff back to where it is supposed to go so that these programmes work properly again???? i also used delete and command but that did not work either,like i said i have not emptied my trash and ALL the info is there its just totally out of place and the put back option will not work sor some reason!!??? im running 10.8.5 imac someone PLEASE help me!!
    i have not set up time machine either but i do back up to a site called backupblaze...

    Step 1
    Remove "MacKeeper" as follows.
    "MacKeeper" has only one useful feature: it deletes itself.
    Note: These instructions apply to the version of the product that I downloaded and tested in early 2012. I can't be sure that they apply to other versions.
    IMPORTANT: "MacKeeper" has what the developer calls an “encryption” feature. In my tests, I didn't try to verify what this feature really does. If you used it to “encrypt” any of your files, “decrypt” them before you uninstall, or (preferably) restore the files from backups made before they were “encrypted.” As the developer is not trustworthy, you should assume that the "decrypted" files are corrupt unless proven otherwise.
    In the Finder, select
    Go ▹ Applications
    from the menu bar, or press the key combination shift-command-A. The "MacKeeper" application is in the folder that opens. Quit it if it's running, then drag it to the Trash. You'll be prompted for your login password. Click the Uninstall MacKeeper button in the dialog that appears. All the functional components of the software will be deleted. Reboot.
    Failure to remove MacKeeper will result from neglecting any one of these points:
    Quit MacKeeper before dragging it to the Trash.
    Don't empty the Trash after dragging the application to it. Let MacKeeper delete itself.
    Don't try to drag the MacKeeper icon in the Dock to the Trash.
    Here are some general suggestions. If you want your computer to be usable, don't install crapware, such as “themes,” "haxies," “add-ons,” “toolbars,” “enhancers," “optimizers,” “accelerators,” "boosters," “extenders,” “cleaners,” "doctors," "tune-ups," “defragmenters,” “firewalls,” "barriers," “guardians,” “defenders,” “protectors,” most “plugins,” commercial "virus scanners,” "disk tools," or "utilities." With very few exceptions, this stuff is useless, or worse than useless.
    The more actively promoted the product, the more likely it is to be garbage. The most extreme example is the “MacKeeper” scam.
    The only software you should install is that which directly enables you to do the things you use a computer for — such as creating, communicating, and playing — and does not modify the way other software works. Never install any third-party software unless you know how to uninstall it.
    Step 2
    Restore from the last backup that predates the unwanted changes.

  • Why is a css 'display:inline;' command not working in one part of the page when it does in another?

    I am trying to set my navigation links to be in a line rather than a column after setting them up as an Unordered List. I have already done it for the social network icons but the same css command just won't apply itself for the navigation. Any help would be appreciated.
    Here is a copy of the page followed by the relevent protion of the css file, the problem occurs with the styles.css applying to the 'topnav' section:
    <!DOCTYPE HTML>
    <html>
    <head>
        <link href="css/styles.css" rel="stylesheet" type="text/css" media="screen">
        <link href="css/print.css" rel="stylesheet" type="text/css" media="print">
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta http-equiv="content-type" content="cache" />
        <meta name="robots" content="INDEX, FOLLOW" />
        <meta name="keywords" content="Enter Keywords" />
        <meta name="description" content="Description Here" />
        <title>Hittite Education by Weirdbeardink</title>
    </head>
    <body>
    <div id="outer">
        <div id="wrapper">
            <div id="logo">
                <ul>
                    <li><img src="images/Logo-2.jpg" /></li>
               </ul>
            </div>
            <div id="social-media-icons">
                <ul>
                    <li><a href="http:/www.facebook.com"><img src="images/icons/facebook-icon.png" /></a></li>
                    <li><a href="http:/www.twitter.com"><img src="images/icons/twitter-icon.png" /></a></li>
                    <li><a href="#"><img src="images/icons/rss-icon.png" /></a></li>
                </ul>
            </div>
            <div id="topnav">
                <ul>
                    <li><p><a href="index.html">HOME</a></p></li>
                    <li><p><a href="about.html">ABOUT</a></p></li>
                    <li><p><a href="contact.html">CONTACT</a></p></li>
                </ul>
             </div>
            <div id="topstripe">
                <ul>
                    <li><img src="images/stripe.jpg" /></li>
                </ul>
            <div id="picture">
                <ul>
                    <li><img src="images/coverpic500px.jpg" /></li>
                </ul>
            </div>
            <div id="content">
                <ul>
                    <li><h1>Introduction</h1></li>
                    <li><p>This is a unique project undertaken to teach important social topics using sport as the vehicle. Sporting and comedy clips are interspersed with filmed interviews with people like Paul Collingwood, Gary Lineker, Ed Leigh, Faye White and many others. They home in on topics such as teamwork, respect, rules, & money, and they use the pupils' experiences of sport to teach really important lessons about life.</p></li>
                 </ul>
            </div>
            <div id="bottomstripe">
                <ul>
                    <li><img src="images/stripeflip.jpg" /></li>
                </ul>
            </div>
            <div id="footer">
                <ul>
                    <li><p>Copyrite 2011 Hittite Education  |  All rites reserved</p></li>
                </ul>
            </div>
         </div>
    </div>   
    </body>
    </html>
    Here is the portion of the styles.css that works (#social-media-icons) and the portion that doesn't (#topnav):
    #social-media-icons         { float:right; }
    #social-media-icons ul li   { display:inline; }
    #social-media-icons ul      { margin-top:100px; }
    #topnav                { clear:both; }
    #topnav                { width:700px; margin: 0 auto; background-color:#FFF; }
    #topnav ul             { padding:10px; }
    #topnav ul li          { display:inline; }     <!-- THIS IS THE LINE THAT WONT WORK -->
    #topnav ul li a        { padding:0 15px;}
    #topnav    a:link            {color:#000; }
    #topnav    a:visited        {color:#000; }
    #topnav    a:active        {color:#000; }
    #topnav    a:focus            {color:#666; }
    #topnav    a:hover            {color:#F38E00; }

    No need to answer this one as I have had a relpy on another forum. I had <p> tags in the unordered list. Once I took them out it all worked fine

  • Mac mini screen wont work after lion

    My hdmi connection to my tv wont work after installing lion last night. It worked once last night but hasnt worked since. All cables are in tact and computer is set up the same. I cant even see anything to fix it!

    I called apple - I'd have been in trouble if my mac had been my only internet access!
    I had to reset the P-RAM
    as so:
    mac is powered off
    turn on power then instantly press keys: command option P R
    the mac will chime as usual then on the second chime let go of the keys.
    After this my screen worked again.
    For info - command key is cmd, option key is alt
    I did this with an old mac wired keyboard - not sure if it will work on bluetooth keyboard, but it might.

  • Everyime i start itunes it crahses and i try to uninstall and it wont work

    i have my computer windows up to date and everytime i start i tunes my computer crashes and so tired to reinstall it but before i reinstall it i have to uninstall so i do that and while im uninstalling itunes i keep getting a secruity error it says like fatal error itunes helper.exe and stuff like that and theres two buttons on retrying and canceling and i keep retrying it wont work so i just cancel it anyone know how i can uninstall itunes or at least have itunes stop chrashing everytime i start itunes i need help PLEASE!!!!!

    I'm having the same problem! I updated iTunes and now the program opens but doesn't respond to certain commands. HATE HATE HATE...
    I'm reinstalling now thinking that may help...fingers crossed.
    I'll have no other way to load up my iPad, or the 3 iPhones in my house!

  • I have downloaded updates for microsoft office and now the internet wont work - any ideas?

    I have downloaded updates for microsoft office and now the internet wont work - any ideas?

    If you want to simply do a 'fresh' install (versus wiping out all of your data and doing a 'clean' install) simply boot to your Recovery partition (hold down the Command and R keys whilst booting) and when the Recovery screen appears, elect to freshly install OS X.
    Don't know that will solve your problem, though... did you do the 'automatic' update or download the update as a disk image (.dmg)? I wouldn't think that would be causing your problems...
    Clinton

  • My iWeb Account wont update it says Can't create the file "mwmac_white.png." The disk may be damaged or full, or you may not have sufficient access privileges... This has never happend  I deleted other sources on website and still wont work? Suggestions?

    My iWeb Account wont update it says Can’t create the file “mwmac_white.png.” The disk may be damaged or full, or you may not have sufficient access privileges... This has never happend  I deleted other sources on website and still wont work? Suggestions?

    Welcome to Apple Support Communities.
    This is the image contained in the file causing the problem...
    I certain the original is contained in the Combo updates and on the OS disks.
    As a temporary fix, click on the image above to open it.
    Use Screen capture (Shift+Command+4) and click on the opposite corners of the image.
    It will be saved as a Screen shot 2011-mm-dd at hh:mm.png
    Right click on the filename in Finder and rename it to mwmac_white.png
    I'm not certain, but the file might need to be moved into the Documents directory in the Subdirectory named for the website name you are editing. That's where it is on my system, but I moved a bunch of files when I restored from Time Machine about 18 months ago.
    I also have many copies of mwmac.png, a separate copy one for each web page where the image appears in my website.

  • Button wont work after Swipe

    Hello everybody,
    I have this script to scroll a movieclip on Ipad:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    text_asco.addEventListener(TransformGestureEvent.GESTURE_SWIPE, onSwipe8);
    function onSwipe8 (e:TransformGestureEvent):void{
    if (e.offsetY == 1) {
    if(text_asco.y <= 100){
    var RightTween:Tween = new Tween(text_asco, "y", Regular.easeOut, text_asco.y, text_asco.y+200, 0.5, true);
    if (e.offsetY == -1) {
    var LeftTween:Tween = new Tween(text_asco, "y", Regular.easeOut, text_asco.y, text_asco.y-200, 0.5, true);
    And then I have some buttons that moves in Timeline, so if the user press chapter one in a menu then it jumps on the timeline so the scrollable movieclip is place at chapter one. But my problem is that when I have used the Swipe gesture the buttons wont work anymore.
    This is my code for ons of the button:
    a.addEventListener(MouseEvent.CLICK, a_Click, false, 0, true);
    function a_Click(event:MouseEvent) { gotoAndStop("asco");
    WHAT IS WRONG???

    I do not think it's the software. It may be a keyboard problem in which case the post about resetting PRAM should fix it.
    In the meantime, you can (or should be able to) reject the disk using the Terminal.
    Here's a link to a page with a few Terminal commands to eject the DVD.
    They work for me.
    http://www.macfixit.com/article.php?story=20041011075232575
    If you can eject the DVD from the Terminal, then it's most likely not the software.
    Here's the one I like:
    Enabling an Eject menu As a side note, you can enable another means of ejecting disks by opening the folder System/Library/CoreServices/Menu Extras and double-clicking the file "Eject.menu". An eject icon will appear in the menubar that can be used to close and open selected optical drives.
    Message was edited by: nerowolfe

  • Windows app store wont work

    Windows app store wont work. Yesterday I shut down my windows stream 8 tablet and it updated a bunch of stuff b4 it shut down. Today I turned it on and went to open the app store and it wont open or load. The green screen comes up on the screen but it
    just gets stuck there and doesn't go any further. It just stays on the green screen with the loading icon?? Have tried restarting tablet, waiting a Couple hers and trying again, disconnecting from my WiFi network and nothing seems to be working. I am running
    windows 8.1. this is my first windows device so not really sure what else to do or try. Any suggestions? Thanks

    Hi
    Extrmcd06,
    Please take the following steps to have a fix:
    Step 1 :
    Run the  Apps troubleshooter to have a fix.
    Step 2 :If the issue persists , re-register the Store App with the following code. To do this:
    open an administrator command line and then input the command
    powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\WinStore\AppxManifest.XML
    Step 3:
    Clear the cache by running the WSreset.exe.
    Best regards

  • Trackpad or USB mouse wont work

    I am struggling with my Macbook pro. Its an early 2010 model. Just in the past couple days the mouse wont work. It just decides it does not want to click at all. Sometimes i can get the right click to work. If i restart with keyboard commands it is fine for about 10 min then does it again.  I thought it was the trackpad but it is performing fine.  I can feel and hear it depress and clilck properly but no action on the screen when it clicks. If i plugin a USB mouse i get the same problem.  I have reset PRAM, repaired permissions, done a hard drive verify and run the hardware test from install disk both easy and extended hardware test. And everything comes up as fine and the permissions repaired fine.
    A couple months ago this computer was acting really weird and i decided to reformat with a fresh system since it had been over a year since i got it. It was a struggle to do even that. It would not install the system after a basic HD erase (which has never happened to me).  I had to zero out the HD to get the system to install.  It worked fine after i finally got it reinstalled and setup until now this mouse thing is happening
    I am just wondering if this seems more like system corruption or a hardware issue like bad HD or bad board.  I am about to reformat again but I hate to go through all that setup again if it is hardware. Anyone have any thoughts on what to try next. Thanks

    The regression reported here http://marc.info/?l=linux-usb&m=137523956310060&w=2 did not solve the problem as i installed the patch found here https://bugs.archlinux.org/task/36296
    Still the same message shown in the xorg log.
    EDIT:
    Also, after being connected the mouse connects as a keyboard, but the actuall mouse functionality dosnt work.
    Last edited by Foxboron (2013-08-12 09:08:39)

  • Iphoto wont work after updating to mountain lion

    I updated to mountain lion now my iphoto wont work. I tried updating but couldnt find iphoto 9.0 they said I needed.  I downloaded and installed iphoto 9.4.2 and it still won't work. It says: your photo library is either in use or has become unreadable. Shut down and restart your computer, and then open iPhoto again. If the problem persists, try rebuilding your photo library. To do this quit iPhoto and then reopen while keeping the option and command keys pressed.
    I did that and it still gives me the same message when I try to open.

    Try the following:
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, 
    navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments. However, books, calendars, cards and slideshows will be lost.
    Note:  your current library will be left untouched for further attempts at a fix if so desired.
    OT

Maybe you are looking for

  • How to Format DataGridView Cells after user input, also find average of Timespans

    I'm a rather new to programming and slowly learning as best I can, and feel that I'm probably just getting hung up on some things because of my lack of overall understanding.  I've searched plenty online and these forums to figure out my issues, but

  • Getting physical path from logical path

    Hi, I am using the FM FILE_GET_NAME  to get the physical path for a given logical path which I have specified within the FILE transaction. The code works fine when I run the program in foreground but it doesn't work when I run it in background. Can a

  • Install rapidweaver and now can't open it because my apple user id password is not recognized

    I installed rapid weaver and now when I go to open the application, I get a message stating this product was purchased using App Store on another computer.  To install "Rapidweaver" on this computer, sign in using the Apple ID and password used to pu

  • Resulting URL in CFMX Cluster

    I'm configuring our first CF Cluster. Up until now we've used only CF Standard. Using the many articles and tutorials from Macromedia's web I've got everything seemingly up and running. However, I've run into an issue that is probably an easy fix but

  • Regular Expression Replacement

    I have a replacement string of the form "[\1\2]='\3'," and I'd like to insert a carriage at the end of the string. I've tried \n, \r\n and it doesn't seem to work.