Error Could Not Find Xml-commons-apis Java Extension For This Jvm
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company could not find or load main class org.apache.tools.ant.launch.launcher linux Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Could Not Find The Main Class: Org.apache.tools.ant.launch.launcher. Program Will Exit.
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, org.apache.tools.ant.launch.launcher jar just like you, helping each other. Join them; it only takes a minute: Sign up “ant -version” returns /usr/bin/build-classpath: error: Some specified jars were not found up vote 4 down vote favorite When typing "$ ant -version" jvm_libdir into a linux terminal window I receive 2 errors followed by the version # and when it was compiled. The first error: /usr/bin/build-classpath: error: Could not find xml-commons-apis Java extension for this JVM The second error: /usr/bin/build-classpath: error: Some specified jars were not found Followed by Apache Ant version 1.6.5 compiled on January 6 2007 I have $JAVA_HOME set to the jdk location and added to my path What could be the cause of these
Install Ant On Centos
errors? linux ant share|improve this question edited Jul 16 '13 at 12:32 Bill the Lizard 222k139447737 asked Jul 15 '13 at 17:55 user2497792 101210 What's your ANT_HOME set to? –Bill the Lizard Jul 15 '13 at 17:57 at the moment it is not set to anything –user2497792 Jul 15 '13 at 17:59 also which ant returns usr/bin/ant but there is no ant directory in my usr/bin –user2497792 Jul 15 '13 at 18:02 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted It looks like you may have missed part of an installation step. Set environmental variables JAVA_HOME to your Java environment, ANT_HOME to the directory you uncompressed Ant to, and add ${ANT_HOME}/bin (Unix) or %ANT_HOME%/bin (Windows) to your PATH. See Setup for details. A lot of JAR files used by Ant are stored in your ${ANT_HOME}/lib directory, so Ant needs to know where this is. Be sure to set the ANT_HOME environment variable and set ${ANT_HOME}/bin in your path. If there's a JAR file missing from your installation, you might just need to manually download it and install it in your ${ANT_HOME}/lib directory. There are a lot of tasks that don't work on a clean Ant installation and need the right JAR installed. share|improve this answer edited Jul 1
Configure Ant for Centos 4.4 ? Issues related to software problems Post Reply Print view Search Advanced ant_home search 4 posts • Page 1 of 1 newtonviet Posts: homebrew ant 5 Joined: 2007/04/01 02:58:15 How to Install and Configure Ant for Centos 4.4 ? Quote Postby newtonviet
Apache Ant Download
» 2007/04/01 03:12:27 I need to install Ant for my Centos 4.4. There is an instruction to do it by using jpackage and I have tried http://stackoverflow.com/questions/17660680/ant-version-returns-usr-bin-build-classpath-error-some-specified-jars-were but it did not work.I followed this post: http://www.centos.org/modules/newbb/vie ... 5&forum=28 but when I check, there is still this problem. Could somebody let me know how to configure this Ant to work with Centos 4.4? Thanks![root@server ~]# java -versionjava version "1.5.0_09"Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed http://www.centos.org/forums/viewtopic.php?t=37428 mode, sharing)[root@server ~]# ant -version/usr/bin/build-classpath: error: could not find xml-commons-apis Java extension for this JVM/usr/bin/build-classpath: error: All specified jars were not foundUnknown argument: -cpant [options] [target [target2 [target3] ...]]Options: -help, -h print this message -projecthelp, -p print project help information -version print the version information and exit -diagnostics print information that might be helpful to diagnose or report problems. -quiet, -q be extra quiet -verbose, -v be extra verbose -debug, -d print debugging information -emacs, -e produce logging information without adornments -lib specifies a path to search for jars and classes -logfile use given file for log -l '' -logger the class which is to perform logging -listener add an instance of class as a project listener -noinput do not allow interactive input -buildfile use given buildfile -file '' -f '' -D= use value for given property -keep-going, -k execute all targets that do not depend on failed target(s) -propertyfile load all properties from file with -D properties taking precedenc
| Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Could not find xml-commons-apis Java extension for this JVM Error on running http://ant.1045680.n5.nabble.com/Could-not-find-xml-commons-apis-Java-extension-for-this-JVM-Error-on-running-ant-on-CentOS-td1356439.html ant on CentOS Hi, I have to run some jmeter scripts on ant. But https://coderanch.com/t/492012/tools/Ant I am getting the following error on running the scripts. /usr/bin/build-classpath: error: Could not find xml-commons-apis Java extension for this JVM /usr/bin/build-classpath: error: Some specified jars were not found If I simply type ant on command line I do get this error, so seems to be some configuration/installation issue of ant. Can anyone point could not me why this error is coming and how to fix it. And one more thing is that the tests are running fine after this error. But I am not sure will there be any repercussion of this error. Please point if there is any. Thanks and Regards Antoine Levy Lambert Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate could not find ♦ ♦ Re: Could not find xml-commons-apis Java extension for this JVM Error on running ant on CentOS Hello Harry, ant is shipping with its own xml-apis.jar. Read the /usr/bin/build-classpath script - I do not know what this is ? maybe some company specific java build script ? Regards, Antoine Harry_ wrote: > Hi, > > I have to run some jmeter scripts on ant. But I am getting the following > error on running the scripts. > > /usr/bin/build-classpath: error: Could not find xml-commons-apis Java > extension for this JVM > /usr/bin/build-classpath: error: Some specified jars were not found > > If I simply type ant on command line I do get this error, so seems to be > some configuration/installation issue of ant. Can anyone point me why this > error is coming and how to fix it. > > And one more thing is that the tests are running fine after this error. But > I am not sure will there be any repercussion of this error. Please point if > there is any. > > Thanks and Regards > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] Snidley Reply | Threaded
This Site Careers Other all forums Forum: Ant, Maven and Other Build Tools Possible problem with Ant 1.6.5 Andrew Stallard Ranch Hand Posts: 33 posted 6 years ago Every time I build with Ant I get the following error whether the build is successful or not: /usr/bin/build-classpath: error: Could not find xml-commons-apis Java extension for this JVM /usr/bin/build-classpath: error: Some specified jars were not found Does this happen to anybody else and what problems might it lead to? Thank You for Responding. Tim Holloway Saloon Keeper Posts: 18313 56 I like... posted 6 years ago No, I've never seen that happen. What platform are you building on, and if it's Linux, are you using the gcj Java or a "real" java? It's also possible that the jars didn't install. For example, if you unzipped the Ant download and the disk filled up while in the middle of the extraction process. An IDE is no substitute for an Intelligent Developer. Andrew Stallard Ranch Hand Posts: 33 posted 6 years ago Tim Holloway wrote:No, I've never seen that happen. What platform are you building on, and if it's Linux, are you using the gcj Java or a "real" java? I use java version 1.6.0_19 from Sun Microsystems. Yes, I use Linux (Red Hat) It's also possible that the jars didn't install. For example, if you unzipped the Ant download and the disk filled up while in the middle of the extraction process. I installed Ant using yum. There were no reported errors. Is there a list of jars somewhere at Ant's website? I couldn't find anything like that over there. Tim Holloway Saloon Keeper Posts: 18313 56 I like... posted 6 years ago Normally Ant comes self-contained, although you can add extensions. However, Red Hat turned darned near every jarkarta project and quite a few other things into separate RPMS. Which is a bit over-granular for me, but such is life. Yum would have resolved any dependencies. Check to make sure that you're really running the Sun JVM and not gcj. Use the "java -version" command. An IDE is no substitute for an Intelligent Developer. Andrew Stallard Ranch Hand Posts: 33 posted 6 years ago Tim Holloway wrote:Normally Ant comes self-cont