You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mi...@tiscali.it on 2005/04/13 16:01:00 UTC
java.lang.NullPointerException, launch.Locator.getLocationURLs
please help me if you can or have sorted already my same problem with ant.
Following instructions on the installation manual, I do all things described
in installation but not able to build ant since the build -Ddist.dir=3D ain_Ant_distribution>
dist command has the following response: access denied. When I type the ant
command from the dos prompt I have this response:
C:\>ant
java.lang.NullPointerException
at org.apache.tools.ant.launch.Locator.getLocationURLs(Locator.java:262)
at org.apache.tools.ant.launch.Locator.getLocationURLs(Locator.java:212)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:128)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Is this because I wasn't able to build ant? Which could be the reason for
that?
or if the exception thrown is indipendent from the build command , how can
I sort it?
I want to see ant -version rightly working
I pray you, help me!!!
Michelangelo
__________________________________________________________________
Tiscali Adsl 3 Mega Flat con 3 MESI GRATIS!
Con Tiscali Adsl 3 Mega Flat navighi con la Supervelocita'
a soli 29.95 euro al mese, senza limiti di tempo. E se attivi
entro il 15 Aprile, 3 MESI sono GRATIS!
Scopri come risparmiare navigando veloce, su
http://abbonati.tiscali.it/adsl/sa/2flat_tc/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: java.lang.NullPointerException, launch.Locator.getLocationURLs
Posted by Peter Reilly <pe...@apache.org>.
It is a known problem.
If the lib location is present but not accessible, ant
will give this null pointer exception.
There was some discussion on the dev list but I cannot
remember if a fix went in.
The "access denied" message implies that the "dist.dir" is not a good
location
to place the build.
Peter
Conor MacNeill wrote:
> Please don't cross-post to the user and dev lists.
>
> mikfaretta@tiscali.it wrote:
>
>> please help me if you can or have sorted already my same problem with
>> ant.
>>
>> Following instructions on the installation manual, I do all things
>> described
>> in installation but not able to build ant since the build
>> -Ddist.dir=3D ain_Ant_distribution>
>> dist command has the following response: access denied. When I type
>> the ant
>> command from the dos prompt I have this response:
>>
>
>
> Access denied is not good. You should sort that out before proceeding.
> Also it helps when you ask this sort of question to state what
> environment you are using - things like what OS, what JDK, where you
> got the Ant source from, etc. "dos prompt" can mean so many things.
>
>> C:\>ant
>> java.lang.NullPointerException
>> at
>> org.apache.tools.ant.launch.Locator.getLocationURLs(Locator.java:262)
>>
>
> My copy of Locator.java from CVS HEAD doe snot even have 262 lines.
>
> Conor
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: java.lang.NullPointerException, launch.Locator.getLocationURLs
Posted by mi...@tiscali.it.
>-- Messaggio Originale --
>Reply-To: "Ant Developers List" <de...@ant.apache.org>
>Date: Thu, 14 Apr 2005 00:13:56 +1000
>From: Conor MacNeill <co...@apache.org>
>To: Ant Developers List <de...@ant.apache.org>
>Subject: Re: java.lang.NullPointerException, launch.Locator.getLocationURLs
>
>
>Please don't cross-post to the user and dev lists.
>
>mikfaretta@tiscali.it wrote:
>> please help me if you can or have sorted already my same problem with
ant.
>>
>> Following instructions on the installation manual, I do all things described
>> in installation but not able to build ant since the build -Ddist.dir=3D
>ain_Ant_distribution>
>> dist command has the following response: access denied. When I type the
>ant
>> command from the dos prompt I have this response:
>>
>
>
>Access denied is not good. You should sort that out before proceeding.
>Also it helps when you ask this sort of question to state what
>environment you are using - things like what OS, what JDK, where you got
>
>the Ant source from, etc. "dos prompt" can mean so many things.
>
>> C:\>ant
>> java.lang.NullPointerException
>> at org.apache.tools.ant.launch.Locator.getLocationURLs(Locator.java:262)
>>
>
>My copy of Locator.java from CVS HEAD doe snot even have 262 lines.
>
>Conor
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
Thanks for help, yes I won't cross-post anymore.
By the way I'm using Windows XP, j2sdk1.4.2_07, I got Ant souce from
apache-ant-1.6.2-bin.zip in http://ant.apache.org/bindownload.cgi webpage,
I followed all the installation process, also setting up the environment
variables, I type ant in an
MS-DOS shell.
Please, please, please HELP ME!!!!!
Thanks
Michelangelo
__________________________________________________________________
Tiscali Adsl 3 Mega Flat con 3 MESI GRATIS!
Con Tiscali Adsl 3 Mega Flat navighi con la Supervelocita'
a soli 29.95 euro al mese, senza limiti di tempo. E se attivi
entro il 15 Aprile, 3 MESI sono GRATIS!
Scopri come risparmiare navigando veloce, su
http://abbonati.tiscali.it/adsl/sa/2flat_tc/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: java.lang.NullPointerException, launch.Locator.getLocationURLs
Posted by Conor MacNeill <co...@apache.org>.
Please don't cross-post to the user and dev lists.
mikfaretta@tiscali.it wrote:
> please help me if you can or have sorted already my same problem with ant.
>
> Following instructions on the installation manual, I do all things described
> in installation but not able to build ant since the build -Ddist.dir=3D ain_Ant_distribution>
> dist command has the following response: access denied. When I type the ant
> command from the dos prompt I have this response:
>
Access denied is not good. You should sort that out before proceeding.
Also it helps when you ask this sort of question to state what
environment you are using - things like what OS, what JDK, where you got
the Ant source from, etc. "dos prompt" can mean so many things.
> C:\>ant
> java.lang.NullPointerException
> at org.apache.tools.ant.launch.Locator.getLocationURLs(Locator.java:262)
>
My copy of Locator.java from CVS HEAD doe snot even have 262 lines.
Conor
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org