Re: Can't find tools.jar when invoking ant programatically

2009-01-16 Thread Scot P. Floess
Ah good point... Sorta had forgotten the fork attribute ;) I seldom, if ever use this :) On Fri, 16 Jan 2009, Blaine Simpson wrote: java and javac will fork or not as described in the Manual for those tasks. As described there, they will not fork unless you use the fork attribute to turn o

Re: Can't find tools.jar when invoking ant programatically

2009-01-16 Thread Blaine Simpson
java and javac will fork or not as described in the Manual for those tasks. As described there, they will not fork unless you use the fork attribute to turn on forking. Using fork="false" (the default) is more efficient, but makes the execution tightly bound to your Ant environment, and doesn't al

Re: Can't find tools.jar when invoking ant programatically

2009-01-16 Thread Scot P. Floess
I didn't think a separate JVM was started for the javac task... Not sure about invoking it programatically (never done that), but I wouldn't think so... That would imply using java.lang.Runtime.exec() On Fri, 16 Jan 2009, robert lazarski wrote: On Fri, Jan 16, 2009 at 12:11 PM, Scot P. Flo

Re: Can't find tools.jar when invoking ant programatically

2009-01-16 Thread robert lazarski
On Fri, Jan 16, 2009 at 12:11 PM, Scot P. Floess wrote: > > I don't think setting the property as you have done is exactly correct... At > least once the JVM is up and running... I'd definitely set JAVA_HOME in > your environment first...before running... > Invoking ant programatically starts an

Re: Can't find tools.jar when invoking ant programatically

2009-01-16 Thread Scot P. Floess
I don't think setting the property as you have done is exactly correct... At least once the JVM is up and running... I'd definitely set JAVA_HOME in your environment first...before running... On Fri, 16 Jan 2009, robert lazarski wrote: On Fri, Jan 9, 2009 at 5:42 PM, Scot P. Floess wrote:

Re: Can't find tools.jar when invoking ant programatically

2009-01-16 Thread robert lazarski
On Fri, Jan 9, 2009 at 5:42 PM, Scot P. Floess wrote: > > Uh yeah... > > Your JAVA_HOME should point to /usr/local/jdk1.6.0_11 > Well, I tried this: System.setProperty("java.home", "/usr/local/jdk1.6.0_11"); Project project = new Project(); ... project.executeTarget(project.getDefaultTarget());

Re: Can't find tools.jar when invoking ant programatically

2009-01-09 Thread Scot P. Floess
Uh yeah... Your JAVA_HOME should point to /usr/local/jdk1.6.0_11 On Fri, 9 Jan 2009, robert lazarski wrote: On Fri, Jan 9, 2009 at 5:12 PM, Scot P. Floess wrote: If you type javac at the command line, what do you see? /root> javac Usage: javac where possible options include: Someth

Re: Can't find tools.jar when invoking ant programatically

2009-01-09 Thread robert lazarski
On Fri, Jan 9, 2009 at 5:12 PM, Scot P. Floess wrote: > > If you type javac at the command line, what do you see? > /root> javac Usage: javac where possible options include: Something screwy is going on, the error: ERROR: /programs/atadapter/oa/openAdapter/ati.build.xml:47: Unable to find a

RE: Can't find tools.jar when invoking ant programatically

2009-01-09 Thread Scot P. Floess
0_17 set CLASSPATH=%JAVA_HOME%\lib set Path=%ANT_HOME%\bin;%JAVA_HOME%\bin;%PATH% -Original Message- From: robert lazarski [mailto:robertlazar...@gmail.com] Sent: Friday, January 09, 2009 11:18 AM To: user@ant.apache.org Subject: Can't find tools.

RE: Can't find tools.jar when invoking ant programatically

2009-01-09 Thread Lucas Albers
### -Original Message- From: robert lazarski [mailto:robertlazar...@gmail.com] Sent: Friday, January 09, 2009 11:18 AM To: user@ant.apache.org Subject: Can't find tools.jar when invoking ant programatically Hi all, I'm running ant 1.7.0 with jdk1.6.0_11 on linu

Re: Can't find tools.jar when invoking ant programatically

2009-01-09 Thread robert lazarski
On Fri, Jan 9, 2009 at 3:40 PM, Scot P. Floess wrote: > What does your javac line look like in your build.xml? > Thanks for the reply: With definitions: - R - To unsubscribe, e-mail: user-uns

Re: Can't find tools.jar when invoking ant programatically

2009-01-09 Thread Scot P. Floess
What does your javac line look like in your build.xml? On Fri, 9 Jan 2009, robert lazarski wrote: Hi all, I'm running ant 1.7.0 with jdk1.6.0_11 on linux. I have the jdk, and not the jre. However, I get this error when invoking ant programatically, via "project.executeTarget(project.getDefault

Can't find tools.jar when invoking ant programatically

2009-01-09 Thread robert lazarski
Hi all, I'm running ant 1.7.0 with jdk1.6.0_11 on linux. I have the jdk, and not the jre. However, I get this error when invoking ant programatically, via "project.executeTarget(project.getDefaultTarget())" and the like. Here's my error: /programs/atadapter/oa/openAdapter/ati.build.xml:49: Unable