Can not run ant build. Please help me!

Please help me. Thks U very much in advance
I've installed java Webservice 1.2 included Ant 1.5 (I haven't installed any
Ant version before)
When I run Ant in cmd, the following error occur:
D:\java\doc\jwstutorial12\examples\gs>ant build
Exception in thread "main" java.lang.NoClassDefFoundError: Files\j2sdk_nb\j2sdk1
/4/2\lib\tools/jar;C:\jwsdp-1/2\apache-ant\//\server\lib\catalina-ant/jar;C:\jws
dp-1/2\apache-ant\//\jaxp\lib\jaxp-api/jar;C:\jwsdp-1/2\apache-ant\//\jaxp\lib\e
ndorsed\sax/jar;C:\jwsdp-1/2\apache-ant\//\jaxp\lib\endorsed\dom/jar;C:\jwsdp-1/
2\apache-ant\//\jaxp\lib\endorsed\xercesImpl/jar;C:\jwsdp-1/2\apache-ant\//\jaxp
\lib\endorsed\xsltc/jar;C:\jwsdp-1/2\apache-ant\//\jaxp\lib\endorsed\xalan/jar;C
:\jwsdp-1/2\apache-ant\lib\optional/jar;C:\jwsdp-1/2\apache-ant\lib\ant/jar;
My computer: windows 2000 Adv Server installed:
1. j2sdk1.4.2 with Netbean IDE 3.5. Installed dir:
     C:\Program Files\j2sdk_nb\j2sdk1.4.2
2. Java WebService 1.2. Installed dir:
     C:\jwsdp-1.2
3. My computer environment variables
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=C:\jwsdp-1.2\apache-ant
APPDATA=C:\Documents and Settings\Administrator\Application Data
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=NHV
ComSpec=C:\WINNT\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\
include=E:\Program Files\Microsoft Visual Studio\VC98\include
JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2
lib=E:\Program Files\Microsoft Visual Studio\VC98\lib
LOGONSERVER=\\NHV
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\orant\jdk
\bin;C:\jwsdp-1.2\jwsdp-shared\bin;C:\jwsdp-1.2\bin;C:\Program Files\j2sdk_nb\j2
sdk1.4.2\bin;C:\jwsdp-1.2\apache-ant\bin;E:\Program Files\Microsoft Visual Studi
o\Common\Tools\WinNT;E:\Program Files\Microsoft Visual Studio\Common\Tools;E:\Pr
ogram Files\Microsoft Visual Studio\VC98\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0803
ProgramFiles=C:\Program Files
PROMPT=$P$G
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
USERDOMAIN=NHV
USERNAME=administrator
USERPROFILE=C:\Documents and Settings\Administrator
windir=C:\WINNT

I have had the same problem as above and spent quite a few nights pulling hair out over it. Adding/removing quotes in the environment var and in the ant batch file didn't seem to work though.
I added and echo line to spit out the antRun command and found the LOCALCLASSPATH var was stuffed.
Rather than piss around any further I just wrote a batch file to generate an equivilant variable called JWSDP_ClassPath (for want of a better name).
The batch file code was simply (line by line to make it easier to read):
set JWSDP_CLASSPATH="C:\Program Files\Sun\s1studio_jdk\j2sdk1.4.1_02\lib\tools.jar";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\server\lib\catalina-ant.jar";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\jaxp-api.jar";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\xsltc.jar";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\xercesImpl.jar";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\xalan.jar";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\sax.jar";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\jaxp\lib\endorsed\dom.jar";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\apache-ant\lib\optional.jar";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\java\jwsdp-1.3\apache-ant\lib\ant.jar";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\Program Files\Sun\s1studio_jdk\j2sdk1.4.1_02\lib";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\Java\jwsdp-1.3\common\lib";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\Java\jwsdp-1.3\apache-ant\lib";
set JWSDP_CLASSPATH=%JWSDP_CLASSPATH%"C:\Java\jwsdp-1.3\server\lib";
I then call this before the antRun command and use JWSDP_CLASSPATH rather than LOCALCLASSPATH in the ant.bat, eg:
call set_JWSDP_CLASSPATH
:runAnt
java -cp %JWSDP_CLASSPATH% "-Dant.home=%ANT_HOME%" "-Djwsdp.home=%ANT_HOME%\.." %ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
This will obviously need to be customised to the install paths on the PC it is run on....
Anyway hope this helps someone if the above more simle solutions do not.
BJL
PS 'carn the LIONS - 4 in a row!!

Similar Messages

  • I have an iphone and after upgrading it`s system i can not open videos now.Please help me

    I have an iphone and after upgrading it`s system i can not open videos now.Please help me

    Trash the prefs in the preferences folder.
    Important Directories
    Mylenium

  • I have treated photos in final cut using effects. The problem is I can not export them. Please help me. Thank you-

    I have treated photos in final cut using effects. The problem is I can not export them. Please help me. Thank you-

    Ernest,
    This is how I do it: With all the video & still's in the time line, I click on each (even if I have to use the command key and click on each file). When each file is active I go under SHARE- go to EXPORT MEDIA- I use the Apple Pro Res codec 4:2:2. If you do not click on each file in the time line it will not be exported out.
    Hope this helps.

  • That did not help me find out needy iPhone will break Icloud account for Iphone his serial number (DN**********TTN) for I am I can not activate buy user please help

    That did not help me find out needy iPhone will break Icloud account for Iphone his serial number (DN******TTN) for I am I can not activate buy user please help
    <Personal Information Edited by Host>

    Your question isn't at all clear. Is this a second-hand phone which has been locked by the previous user?  In that case only the previous owner can unlock it, either by providing you with the account ID and password, or by removing it from his list of devices (as he should have done before selling it) - please see http://support.apple.com/kb/ts4515
    If you unable to contact him to do this then I'm afraid you will not be able to use the device - there is no other way of unlocking it at all.
    You should if possible return it to wherever you bought it and ask for a refund as in this event the device is completely useless.
    You should not post serial numbers or any other personal data here; I've asked the Hosts to remove it.

  • HT1918 How do I reset my account I have 0.91 $ I can not change the Store please help

    How do I reset my account I have 0.91 $
    I can not change the Store please help
    plz help

    Change your password
    iTunes Store: Retrieving and changing passwords (Apple ID)
    Alert itunes support
    https://www.apple.com/support/contact/

  • Good evening, Have been buying ipad4 device used by a licensed legal place in the UAE during use shows that locked the machine by the previous user's icloud I can not deal with it, please help

    Good evening,
    Have been buying ipad4 device used by a licensed legal place in the UAE during use shows that locked the machine by the previous user's icloud I can not deal with it, please help

    amr35 wrote:
    But I want to figure out a solution to this problem because I was not able to get to the first user because I did not know this person, or access to the store where you purchased the working conditions, please help because I had paid an exorbitant amount to buy
    There is no solution other than having the device cleared by the former owner. If you are trying to activate an iPad or iPhone and it is asking for a previous owners Apple ID and password, you have encountered the Activation Lock. This is a security feature that prevents thieves from setting up and using a stolen or lost iPad or iPhone. You have no alternative. You must contact the previous owner to get permission to use the device. If you cannot contact the previous owner return the device to where you bought it and get a refund. You will never be able to activate the device and no one can help you do it.

  • I have a program that I have to use for work and it will only run in firefox 4.0. I can not find it anywhere please help.

    I have uninstalled my 19.0 firefox to download the 4.0 for work and every 4.0 that I have found to download ends up downloading 19.0. I hate that I have to downgrade so much how ever I have to have the program for work. Please help. Thank You Catina with Nexgen Software Services

    You can install a portable Firefox (ESR) version to access websites that do not work with the current Firefox release.
    *http://portableapps.com/apps/internet/firefox_portable
    *http://sourceforge.net/projects/portableapps/files/Mozilla%20Firefox,%20Portable%20Ed./
    *http://sourceforge.net/projects/portableapps/files/Mozilla%20Firefox%2C%20P.E.%20Legacy/

  • REPORT DOES NOT RUN CORRECTLY , URGENT PLEASE HELP

    Hi,
    I am trying to run a report from visul basic screen, but it does not run correctly. Here is how I am running the report. There is a screen developed in VB This screen prompts the user for user id and password. Once it gets that, it connects to the oracle database and pulls out a column from a table. And passes that value as a parameter to the report. Now I am calling the the report for each individual value . There are 21 value being pulled out of the database and it invokes the report 21 times. So there are 21 report engines gets started. Is there a better way to do that ? Secondly when I pass the parameter , some parameters does not pass correctly I guess , because its not generating any out put . Like out of 21 may be 10 or 11 reports gets generated correctly but rest of the reports are blank. I debug the screen i saw that the parameter value is correct, everything seems good. But still the reports are comming blank. Any Idea why it is so ? The command line that i am using in VB screen is
    Shell "C:\progra~1\ora95_2\bin\rwrun60.exe P:\Business_Analysis_&_Reporting_Tool\Test_REPORT_Templates\STORE_TYPES\Baby_Distribution_Report.Rdf USERID=" & UID & "/" & PWD & "@cposp201 DESFORMAT=PDF DESTYPE=FILE DESNAME=" & txtPath.Text & Replace(strName, " ", "_") & ".PDF BRND='" & adoRecBrand!Brand & "' PRINTJOB=NO PARAMFORM=NO"
    In the above command " adoRecBrand!Brand " is the parameter thats being passed. This is actually a recordset and brand is the column in it. When I debug the screen , I see the value also there. But the report comes out blank. Please help. This is urgent.
    Thanks
    Feroz

    The way you call reports is not scalable. If you have 100 records come back from database, you would end up launch 100 engines at the same times, which probably will blow up your machine. You should use oracle reports server to do that. You can either use rwcli60 to submit the job to reports server, or invoke rwcgi60 from URL.
    I am afraid some of reports engine failed to start and you get nothing back in your case.
    After switch to use reports server achitecture, if you still see some report is blank in your application, then you can run that report with that special set of parameters manually and see if any problem with the report itself.
    Hope this helps.
    Thanks,
    -Shaun

  • Javaee5 Tutorial first step error(can not run ant)

    Hi all,
    I have just installed Sun Java System Application Server enterprise Edition in my computer.
    My system is getoo .
    I copy the javaee5Tutorial to the directory of Sun Java System Application Server enterprise Edition
    Here is the error:
    in the bookstore1 directory: run ant
    Buildfile: build.xml
    BUILD FAILED
    /opt/SUNWappserver/javaeetutorial5/examples/web/bookstore1/build.xml:23: The following error occurred while executing this line:
    /opt/SUNWappserver/javaeetutorial5/examples/bp-project/main.xml:20: Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the "else" attribute.
    Total time: 1 second
    regards!
    aries211

    Hi all ....
    it's me again.....I just try a couple of minutes ago to run ANT for the bookstore1 of the Example Servlets of the Java EE 5 Tutorial and still getting this frustated error:
    C:\javaeetutorial5\examples\web\bookstore1>ant
    Buildfile: build.xml
    -pre-init:
    init:
    default-ear:
    build-common:
    -pre-init:
    init:
    default-ear:
    -pre-compile:
    bpp-actual-compilation:
    [echo] Compiling bookstore
    [javac] Compiling 11 source files to C:\javaeetutorial5\examples\web\booksto
    re\build\classes
    [javac] javac: invalid target release: 1.5
    [javac] Usage: javac <options> <source files>
    [javac] where possible options include:
    [javac] -g Generate all debugging info
    [javac] -g:none Generate no debugging info
    [javac] -g:{lines,vars,source} Generate only some debugging info
    [javac] -nowarn Generate no warnings
    [javac] -verbose Output messages about what the compiler
    is doing
    [javac] -deprecation Output source locations where deprecated
    APIs are used
    [javac] -classpath <path> Specify where to find user class files
    [javac] -sourcepath <path> Specify where to find input source files
    [javac] -bootclasspath <path> Override location of bootstrap class fil
    es
    [javac] -extdirs <dirs> Override location of installed extension
    s
    [javac] -d <directory> Specify where to place generated class f
    iles
    [javac] -encoding <encoding> Specify character encoding used by sourc
    e files
    [javac] -source <release> Provide source compatibility with specif
    ied release
    [javac] -target <release> Generate class files for specific VM ver
    sion
    [javac] -help Print a synopsis of standard options
    [subant] Failure for target 'default' of: C:\javaeetutorial5\examples\web\boo
    kstore\build.xml
    [subant] The following error occurred while executing this line:
    [subant] C:\javaeetutorial5\examples\bp-project\command-line-ant-tasks.xml:89
    : Compile failed; see the compiler error output for details.
    copy-common-jars:
    [mkdir] Created dir: C:\javaeetutorial5\examples\web\bookstore1\build\web\WE
    B-INF\lib
    BUILD FAILED
    C:\javaeetutorial5\examples\web\bookstore1\build.xml:36: Warning: Could not find
    file C:\javaeetutorial5\examples\web\bookstore\dist\bookstore.jar to copy.
    Total time: 1 second
    C:\javaeetutorial5\examples\web\bookstore1>
    Here it is the build.properties file
    # uncomment the property javaee.home, and add the path
    # to your GlassFish Java EE 5 SDK installation
    javaee.home=c:/Sun/AppServer
    javaee.tutorial.home=c:/javaeetutorial5
    # machine name (or the IP address) where the applications will be deployed.
    javaee.server.name=localhost
    # port number where the app-server is accessed by the users
    javaee.server.port=8080
    # port number where the admin server of the app-server is available
    javaee.adminserver.port=4848
    # Uncomment the property j2ee.server.username,
    # and replace the administrator username of the app-server
    javaee.server.username=admin
    # Uncomment the property j2ee.server.passwordfile,
    # and replace the following line to point to a file that
    # contains the admin password for your app-server.
    # The file should contain the password in the following line:
    # AS_ADMIN_PASSWORD=adminadmin
    # Notice that the password is adminadmin since this is
    # the default password used by the glassfish app-server installation.
    javaee.server.passwordfile=${javaee.tutorial.home}/examples/common/admin-password.txt
    appserver.instance=server
    # Uncomment and set this property to the location of the browser you
    # choose to launch when an application is deployed.
    # On Windows and Mac OS X the default browser is used.
    #default.browser=/Applications/Firefox.app/Contents/MacOS/firefox-bin
    # Database vendor property for db tasks
    db.vendor=javadb
    This is in my SYSTEM VARIABLE:
    CLASSPATH= c:\sun\appserver\lib;C:\Program Files\IBM\WebSphere MQ\Java\lib\providerutil.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\ldap.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jta.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jndi.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\connector.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mq.jar;c:\j2sdk1.4.2_07;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip\
    javaee.home = C:\\Sun\\AppServer
    JAVA_HOME = c:\j2sdk1.4.2_07
    Thank you in advanced....

  • When i try to down load the updated version of flash player it will only save and not run...please help

    Can not down load up date for flash player..I tried removing my original flash player and this did not work...and now i have no flask player! A firefox window opens for down load and only reads "save" or "cancel" it does not have a "RUN" button. When I double click on the saved document it does not down load. Now what can I do??

    You can find the latest Flash player here:
    *http://www.adobe.com/special/products/flashplayer/fp_distribution3.html
    Try to run the Flash installer as Administrator (right-click: Run as Administrator).
    See also:
    * http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html
    * http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html
    Try to boot the computer in Windows Safe mode with network support (press F8 on the boot screen) to see if that helps to install Flash.

  • HT1349 how do I restore my itunes library music?  I was backing up my ipods and now half of my music can not be located.  please help

    I was backing up my ipods this weekend.  After I was done backing them all up I noticed that there was a circular symbol with an exclamation mark inside near some of my songs.  When I click on the songs it tells me that the original file can not be located.  I press the locate button on the message that appears but I can not find the song.  How do I find my music or restore the music to my library.  Please help!

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • I can not active my iphone please help me

    Hello
    This ID is from my brother but my problem
    I have iphone 5 and i forget my ID ****
    And password , my Email is distroy from someone ( Huker ) too .
    When i wanted to update my iphone to ios 7 from itunes i can not active my phone
    Beacuse i turne on the find my iphone
    So i can not connect with my EMail to restart my password that i forget it
    please help me i need to active my phone and i want to unlock this iphone from this acount ....,
    This following information about my phone :
    My number : +****
    My ID apple : ****
    IMEI:****
    ICCID:****
    Thank's Apple
    Best wishes
    Fahad
    <Personal Information Edited By Host>

    The iPhone you have requires the original Apple id and password used to activate when new to unlock it and allow use
    If you do not have this information then you will NEVER activate the iPhone
    It is an anti theft device to make stolen iPhones useless
    This document explains Activation lock
    http://support.apple.com/kb/HT5818

  • HT5570 The verification is not working the link when it sends the email now I can not down loads apps please help

    This is an iPad that I brought I received the email to verify my account but there is no link in the email for me to go forward why is this as I can not download anything please help

    Hi Voden1,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    Click on the link to see more details and screenshots. 
    Associating and verifying email addresses with your Apple ID
    http://support.apple.com/kb/HE68
    How to verify the primary email address for your Apple ID
    When you first create an Apple ID (using your email address) a verification email will be sent to that address. If you sign in to your Apple ID from the link in that email, the email address will be verified as the primary email address for your Apple ID. You can also resend the email verification if the email address is not verified:
    1. Sign in to My Apple ID to manage your account information.
    2. Click Resend under Primary Email Address.
    3. Verify your changes by following the link in the email you will receive from Apple and signing back in to your account.
    Hope this information helps ...
    - Judy

  • My iphone 4 is in itunes for downgrading my ios but it's already turn off, when i click the previous ios and back to itunes the restore botton is not there and i can not open my iphone.please help me to how to turn on my iphone

    Im in the process of downgrading my ios 7 to 5.1.1 but when I tried to open my previos ios and back to itunes, i can't find the restore settings and the itunes is in original menu... What will I do?  please help me... thanks in advance...

    You can't
    Apple has never approved a method to downgrade iOS
    Allan

  • FILE CAN NOT BE FOUND! please help

    I cannot play any of the songs in the itunes library or sync because the files can not be found. the files are on xternal drive. the itunes music folder location is set for the xternal drive. whenever i have to remove the drive from the laptop and then plug it back in, the files get lost itunes can't find them. any settings suggestions? any help for this problem

    i have done that over and over. i tunes still can't find the files. is there some setting that will resolve this? or is there something else that i have to change in my computer settings.
    my new computer is vista the documents on the xternal drive is windows xp.

Maybe you are looking for