Can't build SJSE8 project via CLI with asant

I have written a small, simple enterprise app in SJSE8 on Windows XP. The app compiles, deploys, and runs correctly from within Studio. I would like to build the app from the command line. I assumed all I had to do was run asant from the folder containing the project's build.xml file, but I get the following result:
C:\working\MyEntApp>asant
Buildfile: build.xml
BUILD FAILED
C:\working\MyEntApp\build.xml:4: Could not create task or type of type: import.
Ant could not find the task or a class this task relies upon.
This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
- You have misspelt 'import'.
   Fix: check your spelling.
- The task needs an external JAR file to execute
     and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
- The task is an Ant optional task and the JAR file and/or libraries
     implementing the functionality were not found at the time you
     yourself built your installation of Ant from the Ant sources.
   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
     task and make sure it contains more than merely a META-INF/MANIFEST.MF.
     If all it contains is the manifest, then rebuild Ant with the needed
     libraries present in ${ant.home}/lib/optional/ , or alternatively,
     download a pre-built release version from apache.org
- The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
- The task is not an Ant core or optional task
     and needs to be declared using <taskdef>.
- You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
   defined it at the point of use
Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath
Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.
Total time: 0 secondsDoes anybody know what I'm doing incorrectly?

IIRC this is an unfortunate known limitation of NetBeans (and hence JSE) web/enterprise projects. It cannot be built outside the IDE, since some of the custom ant tasks are not on the classpath.
Probably you could work around this by adding some IDE jars to ant classpath, but I'm not sure which.

Similar Messages

  • Can't send e-mails via Mail with a Gmail e-mail address using Sky internet

    Can anyone help? My brother has an iBook G4 Mac OS X 4.1 and is trying to send e-mails via Mail with a Googlemail e-mail account. He is using Sky for his broadband. I assume it has something to do with his outgoing smtp e-mail Preferences in Mail, but for the life of me I can't figure it out. He can receive e-mails OK, its just that when he tries to send he gets the 'server can't send error'. Any ideas?

    Here's my gMail IMAP SMTP settings...
    smtp.gmail.com
    Port 25
    Authentication: Password
    SSL
    Sky may require another port to pass through...
    IMAP is port 143
    IMAP-SSL is port 993
    POP is port 110
    POP-SSL is port 995
    SMTP and SMTP-SSL is on ports 25, 587 and 465. Port 587 has to be SSL, and port 465 is enforced TLS-wrapped and is generally used by Outlook users.

  • Can not build a template based page with customized page type.

    I built a customized page type (with persepective attribute) and wanted to build pages with this type. If the new pages do not based on any template, it works fine. However, if I wanted to use a template, the page type was set back to "standard"!
    Steps to reproduce it:
    1. create a new page type - test page type.
    2. create a new template = test template.
    3. create a new page - test page.
    3.1 choose the page type to be "test page type"
    3.2 fill in the form including the new attribute info.
    3.2 choose the page template to be 'test template"
    3.3 click finish
    4. click the properties of "test page", it shows that the page type is "standard" and the new attribute information is gone!
    If in step 3.2, no template is chosen, the properties of the new page shows the page type is "test page type".
    I tried to find a workaround.
    1. create a page with "test page type".
    2. covert the new page to template.
    I got this error message:
    Error while copying page. (WWC-44262)
    (WWC-00000)
    Looks like customized page type and template can not coexist. Is this a bug?

    How long should the upgrade take? And should it be attempted on a production (infrastructure on machine 1/middle-tier on machine 2) Windows 2000 architecture? Or should be wait for 9.0.4? Or ... should I ask this in a TAR? Thanks!
    Mike

  • How can I build a ragged Entity dimension with ERPi

    All,
    I am trying to build an Entity dimension for Planning with ERP Integrator v11.1.2.1, the source is EBS 12.
    In the source system I am building from there is a single parent entity with six child entities, there are then 8 hierarchies of cost centres with no common parent, these cost centre groups define different business areas within only one of the entities, the cost centres for the remaining entities have not yet been defined.
    In the ERP Setup I have specified that the Entity dimension should be built from the Entity and Cost Centre segments and I have created metadata mappings for each parent entity and cost centre ancestor pair (eight in all), the Enitiy segment is traversed first followed by the Cost Centre; all are defined as Base Hierarchies. Each pair has a separate hiearchy name, I tried to define only one of these as a base hierarchy and reuse the name for each pair but this resulted in an error:
    Run Time Error: The hierarchy 'Total Entity' cannot share the parent member 'Total Entity' with the hierarchy 'Total Entity'
    At the moment I get a hierarchy where all cost centres are associated with all child entities.
    Can anyone advise what needs to be done to achieve the following:
    - Get the dimension to build with the cost centres as children of the entities to which they relate.
    - Build the entity dimenion beneath a single common parent e.g. 'Total Entity' rather than eight separate parents (one for each entity/cost centre mapping).
    Thanks

    Gavin,
    i have the same issue, can you please share, how you were able to solve this.

  • How can I build a project made for DOS?

     Hello!
     I've a project I'm afraid was made 15 years ago by somebody with a DOS version of LabWindows. I'm trying to compile it with LabWindows 7.1.1 and I've some "link error" and "syntax error" (about 80). I've tried with the "translate" tool but it doesn't change. How can I manage?
     Hola!
     Tengo un proyecto que fue ejecutado en LabWindows para DOS. Estoy intentando compilarlo con LabWindows 7.1.1 y halla algunos "link error" y "syntax error" (unos 80). He probado con la herramienta "translate" si éxito. Qué más puedo intentar?

    Pow wrote:
     Hello!
     I've a project I'm afraid was made 15 years ago by somebody
    with a DOS version of LabWindows. I'm trying to compile it with
    LabWindows 7.1.1 and I've some "link error" and "syntax error" (about
    80). I've tried with the "translate" tool but it doesn't change. How
    can I manage?
    I'm very much afraid you are in the wrong forum here!!
    We talk here about LabVIEW which fortunately never had to run under DOS
    ;-). As to your question itself it could be tricky. If the code has
    been written in the C slang of LabWindows for DOS you should be able to
    fairly easily get it up to compile in a recent LabWindows CVI version,
    although there have been some issues about converting from DOS to CVI
    due to 16bit -> 32bit issues and I'm not sure there is still good
    documentation about that. The move from DOS to CVI was after all more
    than 10 years ago.
    If the program is written in the QuickBasic slang LabWindows for DOS
    also supported, you will first have to find an old LabWindows for DOS
    installation to let it translate the QuickBasic code to C before you
    can attempt to import it into LabWindows CVI.
    Just looking at the code and trying to recode everything in LabWindows
    CVI or maybe LabVIEW ;-) may be not such a bad idea after all. It could
    make sure that the application is coded in a good way as ol' LabWindows
    for DOS had quite some limitations due to its dual language
    QuickBasic/C support.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Can I build this kind of file with Reports?

    I've not used Reports for anything other than formatted reports before, your help is appreciated.
    What I'd like to do with a Report is build a file with very long lines (each 610 characters long). It is simply the result of a query that builds a fixed-width line file for export to another process. This file is currently built within Forms (writes to the client machine with TEXT_IO), but it would take hours and hours to write out the entire file and it times out after an hour. I need to find a better way.
    Can Reports handle the long lines or will it wrap them? Will it build a text file like this?
    Thanks,
    J

    You are running a report that takes many hours you say. That is typically a batch job. Place the output in a directory where the user has access, e.g. on a file server.
    BTW: you can still use Reports if you want. Just make it a wide report. Reports has scheduling possibilities, report output location options etc.

  • How can I fix app downloading issues?  Can only load/update apps via sync with laptop.

    I cannot download, reload,or update my Apps via Wifi. I can only accomplish this by syncing the phone via iTunes and laptop via cable. When I choose to install or update I get a "waiting" message indefinitely.

    Issue solved. I found that there was a PodCast that had not finished downloading for some reason. I deleted the PodCast app and all PodCast downloads and Apps download fine now.

  • Re: Can't create application project using libraries with the SunStudio Tool C.

    If function "test" is called from a module written in a different language, you might be seeing a difference in the external (linker) name created for the function by different languages.
    To mix C, C++ and Fortran, follow the rules in the Fortran Programming Guide, chapter 11 "C-Fortran Interface", for calling functions written in C, or for creating subroutines and functions to be called from C.
    In C++ code, declare or define the function as extern "C". Then the external name of the function will be spelled the same in all three languages.
    Example, where test() is written in Fortran and called from C++:
    f1.f
    SUBROUTINE test
    BIND(C) test
    f2.cc
    extern "C" void test()
    int main()
        test();
    }In addition, don't forget you need to add the option -xlang=f90 or -xlang=f95 to the CC command that links the final program.
    Edited by: clamage45 on Apr 16, 2009 11:09 AM

    sorry my fault, the subprojects were still configured to GNU in the "Tool Collection" in the output I posted.
    i now opened each subproject and made sure it is set to SunStudio just like my main project, but I still have the same error. here is my output:
    Running "/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug clean" in /home/felix/SunStudioProjects/SubProjects_Example/main
    dmake: defaulting to parallel mode.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    ariel --> 1 job
    ariel --> 2 jobs
    /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
    cd ../hello1lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug clean
    ariel --> 1 job
    ariel --> 2 jobs
    /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
    ariel --> 1 job
    rm -f -r build/Debug
    rm -f dist/Debug/SunStudio-Linux-x86/libhello1lib.a
    CCadmin -clean
    cd ../hello2lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug clean
    ariel --> 1 job
    ariel --> 2 jobs
    /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
    ariel --> 1 job
    rm -f -r build/Debug
    rm -f dist/Debug/SunStudio-Linux-x86/libhello2lib.a
    CCadmin -clean
    cd ../hello3lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug clean
    ariel --> 1 job
    ariel --> 2 jobs
    /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
    ariel --> 1 job
    rm -f -r build/Debug
    rm -f dist/Debug/SunStudio-Linux-x86/libhello3lib.so
    CCadmin -clean
    cd ../hello4lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug clean
    ariel --> 1 job
    ariel --> 2 jobs
    /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .clean-conf
    ariel --> 1 job
    rm -f -r build/Debug
    rm -f dist/Debug/SunStudio-Linux-x86/libhello4lib.so
    CCadmin -clean
    ariel --> 1 job
    rm -f -r build/Debug
    rm -f dist/Debug/SunStudio-Linux-x86/main
    CCadmin -clean
    Clean successful. Exit value 0.
    Running "/home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug" in /home/felix/SunStudioProjects/SubProjects_Example/main
    dmake: defaulting to parallel mode.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    ariel --> 1 job
    ariel --> 2 jobs
    /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
    cd ../hello1lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug
    ariel --> 1 job
    ariel --> 2 jobs
    /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
    /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk dist/Debug/SunStudio-Linux-x86/libhello1lib.a
    ariel --> 1 job
    mkdir -p build/Debug/SunStudio-Linux-x86
    CC -c -g -o build/Debug/SunStudio-Linux-x86/hello1.o hello1.cc
    ariel --> Job output
    mkdir -p build/Debug/SunStudio-Linux-x86
    CC -c -g -o build/Debug/SunStudio-Linux-x86/hello1.o hello1.cc
    ariel --> 1 job
    mkdir -p dist/Debug/SunStudio-Linux-x86
    rm -f dist/Debug/SunStudio-Linux-x86/libhello1lib.a
    ar rv dist/Debug/SunStudio-Linux-x86/libhello1lib.a build/Debug/SunStudio-Linux-x86/hello1.o
    ranlib dist/Debug/SunStudio-Linux-x86/libhello1lib.a
    ariel --> Job output
    mkdir -p dist/Debug/SunStudio-Linux-x86
    rm -f dist/Debug/SunStudio-Linux-x86/libhello1lib.a
    ar rv dist/Debug/SunStudio-Linux-x86/libhello1lib.a build/Debug/SunStudio-Linux-x86/hello1.o
    ar: creating dist/Debug/SunStudio-Linux-x86/libhello1lib.a
    a - build/Debug/SunStudio-Linux-x86/hello1.o
    ranlib dist/Debug/SunStudio-Linux-x86/libhello1lib.a
    cd ../hello2lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug
    ariel --> 1 job
    ariel --> 2 jobs
    /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
    /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f nbproject/Makefile-Debug.mk dist/Debug/SunStudio-Linux-x86/libhello2lib.a
    ariel --> 1 job
    mkdir -p build/Debug/SunStudio-Linux-x86
    CC -c -g -o build/Debug/SunStudio-Linux-x86/hello2.o hello2.cc
    ariel --> Job output
    mkdir -p build/Debug/SunStudio-Linux-x86
    CC -c -g -o build/Debug/SunStudio-Linux-x86/hello2.o hello2.cc
    ariel --> 1 job
    mkdir -p dist/Debug/SunStudio-Linux-x86
    rm -f dist/Debug/SunStudio-Linux-x86/libhello2lib.a
    ar rv dist/Debug/SunStudio-Linux-x86/libhello2lib.a build/Debug/SunStudio-Linux-x86/hello2.o
    ranlib dist/Debug/SunStudio-Linux-x86/libhello2lib.a
    ariel --> Job output
    mkdir -p dist/Debug/SunStudio-Linux-x86
    rm -f dist/Debug/SunStudio-Linux-x86/libhello2lib.a
    ar rv dist/Debug/SunStudio-Linux-x86/libhello2lib.a build/Debug/SunStudio-Linux-x86/hello2.o
    ar: creating dist/Debug/SunStudio-Linux-x86/libhello2lib.a
    a - build/Debug/SunStudio-Linux-x86/hello2.o
    ranlib dist/Debug/SunStudio-Linux-x86/libhello2lib.a
    cd ../hello3lib && /home/felix/SunStudioExpress/sunstudioceres/bin/dmake -f Makefile CONF=Debug
    (...)

  • Why can't I purchase music via iTunes with credit available

    I have £17 available to spend from iTunes voucher. I have purchased music and other apps, I also have sufficient gb for the song I want to purchase. The song costs 79pence, but I am unable to select the purchase button. Any ideas how this can be resolved?

    Are you trying to purchase this as a gift? Then it won't work.
    Check with iTS.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • CAN I CHARGE MY PHONE VIA COMPUTER WITH MY USB CON...

    MY CHARGER BROKE AND I HAVE ORDERED A NEW ONE, I NEED TO USE MY PHONE,, BUT I DONT KNOW HOW TO CHARGE IT VIA COMPUTER, AS WITH MY SISTERS SONY, HERS CHARGES WHILST PLUGGED INTO THE COMPUTER?? DOES IT WORK?

    Hi tangycheese
    Unfortunately I think that you need such as Nokia CA-100:
    http://europe.nokia.com/A4317011
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Can i build a JMS client application with J2ME ?

    I need to know which configuration and profile will allow me to build a application that will run on a windows ce / pocketpc PDA and send JMS messages to a server. I need the J2ME application to be a JMS client
    I also need messaging
    pda -> server (text or byte message)
    server -> pda text messages
    pda -> pda text messages
    any helps/comments would be appreciated

    maybe what i need to look at is the new wireless messaging (WMA) ?

  • Can you build Flash elements to work with responsive websites?

    Hey everybody,
    Just a quick question ...
    The company I work for is now starting to develop responsive websites and portals. We have several websites that utilize Flash and will continue to do so in the future.
    My concern is that the Flash components will not resize when the screen size shifts. Is this correct? Is there a way I can develop these portals/sites/components to behave responsively as the screen sizes change?
    Any and all advice is very welcome!!! Thank you in advance!!!

    If interested on moving to HTML5 from Flash,check out  this http://www.adobe.com/products/flash/flash-to-html5.html

  • Can you control Apple TV via LAN from 3rd party control such as AMX or Crestron?

    I would like to know if you can control an Apple TV via LAN with a 3rd party control AMX or Crestron - is there an API available for this? Two way communication would be ideal!

    Become an Apple Developer and figure out how to do it. There may be an API on IOS to do it, but I'm going with Rudegar on this point. Almost certain that it's not possible.

  • Fail to build SSIS/SSAS projects via VS2012 command line (devenv.exe) with SSDT BI tool installed

    Hello,
    I installed recently released SSDT BI tools for VS2012 and I can work on my existing SSIS/SSAS projects all well in VS2012. But when I try to build my SSIS/SSAS projects via the command line of VS2012, such as
    devenv.exe mySolution.sln /rebuild Release /out "C:\temp\buildLog.txt"
    I will get the error like below in the log file.
    Error: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
    Is this a known issue? If yes, any fix has been planned?
    Thanks
    Jimmy

    Hi Jimmy Jin,
    This sounds like .NET framework problem, please refer to:
    http://bchavez.bitarmory.com/archive/2007/08/23/catastrophic-failure-exception-from-hresult-0x8000ffff-e_unexpected.aspx
    http://bchavez.bitarmory.com/archive/2007/08/23/catastrophic-failure-exception-from-hresult-0x8000ffff-e_unexpected.aspx
    Thanks,
    Eileen
    If you have any feedback on our support, please click
    here
    Eileen Zhao
    TechNet Community Support

  • With imatch, can I build playlists and synch to my nano as I would with main computer? Also, can you synch nike plus workouts via imatch successfully?

    With imatch, can I build playlists and synch to my nano as I would with main computer? Also, can you synch nike plus workouts via imatch successfully?

    The Nano cannot connect to iCloud to download iMatch songs, playlists, etc. and iMatch is only for music you own it does not work with Nike plus.

Maybe you are looking for

  • AirPlay Data Flow?

    Hello - I'm about to purchase an Airport Express to connect to my home stereo receiver via audio-cable. Planning to be able to output the sound usually coming out of my iPad thru my big stereo system, from Apps such as YouTube, Pandora, TuneIn Radio,

  • IE9 Prohibits .pdf File Download, Uninstall Does Not Correct

    I had been using IE8 with Win7 SP1 Home to download bank statement pdf files (.asp) from an https: site successfully for months.  I installed IE9, but then could no longer download those pdf files, receiving a "blank page" URL instead.  Furthermore,

  • New administrative features in NetWeaver 7.1

    Dear Basis gurus, Could you please let me know what are the various new administrative features available in net weaver 7.1 . as far as i see, i could see the following new features when compare with netweaver 6.4 and 7.0 1. no start profile 2. sapjv

  • Can I copy newer system (10.6.8.) from previous system folder after archive and install with (10.5.4)?

    Rightyho, had trouble with extensions in 10.6.8 and had to re-install with original disks 10.5.4. Did an archive and install. In my (dated) Previous System Folder are Appl / Library / System / User folders. Copied my User folder back no problem. Can

  • 1 Mac & 2 Different iPod

    Hello everyone, One of my friend called me today with an interesting question regarding the iPod & iTunes. His wife has an iPod Shuffle and his friend an iPod. Both iPod have completely different library. They want to transfer some songs from the wif