Re: Setting PATH variable

2012-05-16 Thread John Smith
Hi, I'm suspect your problem might be a generic ANT issue rather than something specifically associated with Jenkins. Are you are to run this script from the command line on your Jenkins server. The other question is where you get the error - is it in launching ANT, or is it ANT trying to compile

Re: Setting PATH variable

2012-05-16 Thread John Smith
Hi, To my mind this sounds like a ANT problem rather than something to do with Jenkins (although it could be manifesting through Jenkins). Have you tried calling the ANT script directly from the command line? Another question - is the problem running ANT it's self, or is the problem when ANT trie

Re: Setting PATH variable

2012-05-15 Thread Prakash A
Hi, Thanks for your response. But i did set the classpath as you suggested, still getting the same error. Following is the output in the console. *[workspace] $ /usr/ant/apache-ant-1.8.3/bin/ant -DCLASSPATH=/usr/java/jdk1.6.0_24/jre/lib/rt.jar print Error occurred during initialization of VM ja

Re: Setting PATH variable

2012-05-15 Thread John Smith
I suspect the problem isn't your PATH, but your CLASSPATH. You'll need to make sure this includes: ${JAVA_HOME}/jre/lib/rt.jar (Assuming that you've already set JAVA_HOME). On Tue, May 15, 2012 at 11:06 AM, Prakash A wrote: > Hello All, > > I'm very new Jenkins (even to CI tools). I have a pr

Setting PATH variable

2012-05-15 Thread Prakash A
Hello All, I'm very new Jenkins (even to CI tools). I have a problem in running ANT target from Jenkins. Let me clarify the question. I've my jenkins installed in CentOS using native method (YUM repo). I've also installed JDK, Ant. I did configured the path of those things in Jenkins -> Manage Je