Re: Java in JDK but ANT can't find it!

2009-12-21 Thread Antoine Levy Lambert
Hello Juha, I do not understand what is causing the described problem to happen. The ant script never sets JAVA_HOME. At least not directly. Can you check whether the rpm_mode is activated on your computer ? I think you can run ant like that " ant --noconfig " to desactivate the rpm_mode.

Re: Java in JDK but ANT can't find it!

2009-12-21 Thread Juha Laiho
I came across this oldish thread while trying to resolve the same problem: David Nemer wrote: > I am running ANT programmatically in JAVA. So, my task is to build the > BUILD.XML. > I'm able to do so, but it throws an exception saying: > > /scratch2/nemer/test/xfire/build.xml:5: The following err

Re: Java in JDK but ANT can't find it!

2009-05-19 Thread Steve Loughran
David Nemer wrote: Hey Guys, thank you all for your help, I'm answering the questions from Ashley, Steve and Kevin, some answers are huge due to the compilation message ANT provides. Just a reminder, I'm running ANT in a Linux Server, my overall goal is to download a version from a repository, bu

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread David Nemer
riginal Message- > From: David Nemer [mailto:davidne...@gmail.com] > Sent: Monday, May 18, 2009 4:51 PM > To: Ant Users List > Subject: Re: Java in JDK but ANT can't find it! > > This is the result I get from building it from my Java code: > > build-all: > > init:

RE: Java in JDK but ANT can't find it!

2009-05-18 Thread Cole, Derek E
Can you post what you have your actual system path and classpath set to? -Original Message- From: David Nemer [mailto:davidne...@gmail.com] Sent: Monday, May 18, 2009 4:51 PM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it! This is the result I get from buildi

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread supareno
ut when adding a logger to the build, as well as some other issues. I was running this java program using a task in a separate ant file, btw. I also intend to fire a version from a perl script. -Original Message----- From: Ashley Williams [mailto:ashpub...@mac.com] Sent: Sunday, May 17, 2009 9:0

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread David Nemer
gt; heck of a time capturing the javac tasks output when adding a logger to >> the build, as well as some other issues. >> >> >> I was running this java program using a task in a separate ant >> file, btw. I also intend to fire a version from a perl script. >> >

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread David Nemer
gt; > > I was running this java program using a task in a separate ant > file, btw. I also intend to fire a version from a perl script. > > > -Original Message- > From: Ashley Williams [mailto:ashpub...@mac.com] > Sent: Sunday, May 17, 2009 9:00 AM > To: Ant Users List >

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread David Nemer
Hey Guys, thank you all for your help, I'm answering the questions from Ashley, Steve and Kevin, some answers are huge due to the compilation message ANT provides. Just a reminder, I'm running ANT in a Linux Server, my overall goal is to download a version from a repository, build the version, and

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread Kevin Jackson
Hi, what does which javac tell you? And can you post the output of ant -verbose? Thanks, Kev - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread Steve Loughran
David Nemer wrote: Just a remark, when I run the application and /opt/jdk1.6.0_06/lib/tools.jar to the classpath. It gives me a different error message: "Compile failed; see the compiler error output for details." there is no error msg and it still says BUILD SUCCESSFUL 1. is this a package-m

RE: Java in JDK but ANT can't find it!

2009-05-18 Thread Cole, Derek E
cript. -Original Message- From: Ashley Williams [mailto:ashpub...@mac.com] Sent: Sunday, May 17, 2009 9:00 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it! Hi David, I never meant that you should modify the ant code. Try launching your app with the full

Re: Java in JDK but ANT can't find it!

2009-05-17 Thread Ashley Williams
Hi David, I never meant that you should modify the ant code. Try launching your app with the fully qualified path to the jdk java eg: > /path/to/jdk/bin/java MyTestApp So in other words don't rely on your PATH environment variable. It could be also that the bootclasspath has been overridden s

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
Just a remark, when I run the application and /opt/jdk1.6.0_06/lib/tools.jar to the classpath. It gives me a different error message: "Compile failed; see the compiler error output for details." there is no error msg and it still says BUILD SUCCESSFUL -- David Nemer Sent from Kaiserslautern, RP,

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
Hello Michael, here is my code on how I'm invoking Ant: Project p = new Project(); p.setUserProperty("ant.file", buildFile.getAbsolutePath()); DefaultLogger consoleLogger = new DefaultLogger(); consoleLogger.setErrorPrintStream(System.err);

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread Michael Ludwig
David Nemer schrieb am 16.05.2009 um 20:51:31 (+0200): > ne...@kubrick:~$ java -jar /home/nemer/apache-ant-1.7.1/lib/ant-launcher.jar > -version > Apache Ant version 1.7.1 compiled on June 27 2008 > > ne...@kubrick:~$ /opt/jdk1.6.0_06/bin/java -jar > /home/nemer/apache-ant-1.7.1/lib/ant-launcher.

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
Hello Michael, I undid that change into JavaEnvUtils.java. I executed the commands you said, and here is the outcome: ne...@kubrick:~$ java -jar /home/nemer/apache-ant-1.7.1/lib/ant-launcher.jar -version Apache Ant version 1.7.1 compiled on June 27 2008 ne...@kubrick:~$ /opt/jdk1.6.0_06/bin/jav

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread Michael Ludwig
David Nemer schrieb am 16.05.2009 um 18:52:34 (+0200): > So here's what I did... I modified the source file JavaEnvUtils.java > from ANT (ant.jar), I changed the line #47: > > private static final String JAVA_HOME = System.getProperty("java.home"); > to: private static final String JAVA_HOME = Sy

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
gt;>> üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy >>>>> jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának >>>>> készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és >>>>> semmiféle jogi alkalmazhatósága

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
>>> >>>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene >>>> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede >>>> unbefugte >>>> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese >&g

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
er Fertigung einer Kopie ist unzulaessig. Diese Nachricht >>> dient lediglich dem Austausch von Informationen und entfaltet keine >>> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von >>> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehm

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread Ashley Williams
e forking the compiler, could it not be inheriting the environment correctly? On 14 May 2009, at 16:22, Cole, Derek E wrote: Ashley, can you post a snippet of how you set up the project you launch programmatically from java? What does your build file that you are running from java cont

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > Date: Sat

RE: Java in JDK but ANT can't find it!

2009-05-16 Thread Martin Gainty
, 16 May 2009 15:36:19 +0200 > Subject: Re: Java in JDK but ANT can't find it! > From: davidne...@gmail.com > To: user@ant.apache.org > > Hello Supareno, > > I running it using the command line (running in a linux-server ). And ant is > also running properly. >

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
ication. >>> >>> If you are forking the compiler, could it not be inheriting the >>> environment >>> correctly? >>> >>> >>> On 14 May 2009, at 16:22, Cole, Derek E wrote: >>> >>> Ashley, can you post a snippet of how you set

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread supareno
ou set up the project you launch programmatically from java? What does your build file that you are running from java contain in it? -Original Message- From: Ashley Williams [mailto:ashpub...@mac.com] Sent: Thursday, May 14, 2009 10:54 AM To: Ant Users List Subject: Re: Java in

Re: Java in JDK but ANT can't find it!

2009-05-15 Thread David Nemer
I just found this: "/jdk1.6.0/jre: Root directory of the Java runtime environment used by the JDK development tools. The runtime environment is an implementation of the Java platform. This is the directory referred to by the java.home system property." http://209.85.129.132/search?q=cache:8l-7he

Re: Java in JDK but ANT can't find it!

2009-05-15 Thread David Nemer
It wouldn't work since ANT looks for JAVA_HOME. -- David Nemer Sent from Kaiserslautern, RP, Germany On Fri, May 15, 2009 at 11:55 PM, Francis Galiegue wrote: > Le Friday 15 May 2009 23:50:50 David Nemer, vous avez écrit : > > Hey all, > > > > Well, I did some testing, and I tried to run this si

Re: Java in JDK but ANT can't find it!

2009-05-15 Thread Francis Galiegue
Le Friday 15 May 2009 23:50:50 David Nemer, vous avez écrit : > Hey all, > > Well, I did some testing, and I tried to run this simples Java code: > > public static void main(String args[]){ > > String JAVA_HOME = System.getProperty("java.home"); > System.out.println(JAVA_HOME)

Re: Java in JDK but ANT can't find it!

2009-05-15 Thread David Nemer
; >> What does your build file that you are running from java contain in it? >> >> -Original Message- >> From: Ashley Williams [mailto:ashpub...@mac.com] >> Sent: Thursday, May 14, 2009 10:54 AM >> To: Ant Users List >> Subject: Re: Java in JDK bu

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread Ashley Williams
? -Original Message- From: Ashley Williams [mailto:ashpub...@mac.com] Sent: Thursday, May 14, 2009 10:54 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it! Check your PATH to make sure you are launching your application from the jdk and not the jre. I l

RE: Java in JDK but ANT can't find it!

2009-05-14 Thread Cole, Derek E
Users List Subject: Re: Java in JDK but ANT can't find it! Check your PATH to make sure you are launching your application from the jdk and not the jre. I launch programatically and I don't get these errors with the same version of ant so it does sound as if the problem lies outs

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread Ashley Williams
ome missing step here that prevents the ant Project instance from knowing which Java to use. -Original Message- From: Ashley Williams [mailto:ashpub...@mac.com] Sent: Thursday, May 14, 2009 9:56 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it! It looks like you are

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread David Nemer
28, Cole, Derek E wrote: >>> >>> When I had this problem, I KNOW that JAVA_HOME was set correctly. I >>> >>>> still ran into the problem. The OP here also said JAVA_HOME was set >>>> correctly. There is some missing step here that prevents the ant Proje

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread Ashley Williams
pub...@mac.com] Sent: Thursday, May 14, 2009 9:56 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it! It looks like you are pointing to the jre not the jdk. Try repointing the JAVA_HOME environment variable to the jdk directory instead, On 14 May 2009, at 13:15, David Nemer wrote

RE: Java in JDK but ANT can't find it!

2009-05-14 Thread Cole, Derek E
ols.javac.Main is not on the classpath. >> Perhaps JAVA_HOME does not point to the JDK. >> It is currently set to "/opt/jdk1.6.0_06/jre" -Original Message- From: Ashley Williams [mailto:ashpub...@mac.com] Sent: Thursday, May 14, 2009 10:43 AM To: Ant Users List Subjec

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread David Nemer
use. >> >> -Original Message- >> From: Ashley Williams [mailto:ashpub...@mac.com] >> Sent: Thursday, May 14, 2009 9:56 AM >> To: Ant Users List >> Subject: Re: Java in JDK but ANT can't find it! >> >> It looks like you are pointing to the jre n

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread Ashley Williams
was set correctly. There is some missing step here that prevents the ant Project instance from knowing which Java to use. -Original Message- From: Ashley Williams [mailto:ashpub...@mac.com] Sent: Thursday, May 14, 2009 9:56 AM To: Ant Users List Subject: Re: Java in JDK but ANT can&#

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread David Nemer
ctly. There is some missing step here that prevents the ant Project > instance from knowing which Java to use. > > -Original Message- > From: Ashley Williams [mailto:ashpub...@mac.com] > Sent: Thursday, May 14, 2009 9:56 AM > To: Ant Users List > Subject: Re: Java i

RE: Java in JDK but ANT can't find it!

2009-05-14 Thread Cole, Derek E
Williams [mailto:ashpub...@mac.com] Sent: Thursday, May 14, 2009 9:56 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it! It looks like you are pointing to the jre not the jdk. Try repointing the JAVA_HOME environment variable to the jdk directory instead, On 14 May 2009, at

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread Ashley Williams
It looks like you are pointing to the jre not the jdk. Try repointing the JAVA_HOME environment variable to the jdk directory instead, On 14 May 2009, at 13:15, David Nemer wrote: Hello Everyone, I am running ANT programmatically in JAVA. So, my task is to build the BUILD.XML. I'm able to

RE: Java in JDK but ANT can't find it!

2009-05-14 Thread Cole, Derek E
this helps Derek -Original Message- From: David Nemer [mailto:davidne...@gmail.com] Sent: Thursday, May 14, 2009 8:15 AM To: Ant Users List Subject: Java in JDK but ANT can't find it! Hello Everyone, I am running ANT programmatically in JAVA. So, my task is to build the BUILD.XML. I&#x

Java in JDK but ANT can't find it!

2009-05-14 Thread David Nemer
Hello Everyone, I am running ANT programmatically in JAVA. So, my task is to build the BUILD.XML. I'm able to do so, but it throws an exception saying: /scratch2/nemer/test/xfire/build.xml:5: The following error occurred while executing this line: /scratch2/nemer/test/xfire/build-common.xml:81: U