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.
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
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
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:
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
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
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.
>>
>
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
>
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
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
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
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
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
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,
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);
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.
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
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
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
>>>
>>>> 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
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
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
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
, 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.
>
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
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
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
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
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)
;
>> 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
?
-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
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
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
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
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
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
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
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
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
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
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
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
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
43 matches
Mail list logo