anyone with same environment theoretically should encounter this error ..can
you post JIRA?
(the idea is to annotate the readme for that specific OS/JDK/JVM so others dont
spin their wheels trying to figure this out)Also concerning
C:\toos\Java\jdk1.6.0_03 most environments (to save on space)SET
JAVA_HOME=C:\toos\Java\jdk1.6.0_03
SET PATH=%JAVA_HOME%\bin;%PATH%
Here is the link to bugzilla
http://issues.apache.org/bugzilla/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&product=Ant&long_desc_type=substring&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&keywords_type=allwords&keywords=&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailtype1=substring&email1=&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailtype2=substring&email2=&bugidtype=include&bug_id=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&field0-0-0=noop&type0-0-0=noop&value0-0-0=
ThanksMartin______________________________________________Disclaimer and
confidentiality noteEverything in this e-mail and any attachments relates to
the official business of Sender. This transmission is of a confidential nature
and Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within this
transmission.> From: [EMAIL PROTECTED]> To: user@ant.apache.org; [EMAIL
PROTECTED]> Subject: RE: Error running C:\toos\Java\jdk1.6.0_03\bin\javac.exe
compiler> Date: Tue, 1 Jan 2008 11:03:16 +0530> > Hi All,> > Just to inform the
list about the problem mentioned in subject line, as> mentioned to Freeman, I
found later that it was not the valid reaons for the> problem, but reaon I
found was big paths in javac task which caused the> problems... which took me a
while to investigae.> > I shortened the path in javac task's 'srcdir' and
'destdir' and problem did> not appeared again..> > I got two types of error
during investigation :> 'Error starting modern compiler' and 'Error running
javac.exe compiler'> > Which disappeared now, during investigating the same I
had a look on ant> source code to for the particular string which was comming
as error and I> found the reference of the same under which led me to further
investigation> of the same :> > Line number 509 in DefaultCompilerAdapter.java>
> } catch (IOException e) {> throw new BuildException("Error running " +
args[0]> + " compiler", e, location);> > Thanks a lot for your help and
support!> > Regards.> Ravi.> > > > > > > -----Original Message-----> From: Ravi
Roy [mailto:[EMAIL PROTECTED] > Sent: Sunday, December 23, 2007 5:14 PM> To:
'Ant Users List'; 'FREEMAN FIREFOX'> Subject: RE: Error running
C:\toos\Java\jdk1.6.0_03\bin\javac.exe compiler> > > > Hi Freeman,> > I have
found the culprit which is one of the subproject on the classpath, if> I remove
the classes of that project from classpath before actually start> compiling
JUnit tests, then I do not get this Error running javac.exe> compiler, though
it looks strange but this is the fact I have seen.> > I have to investigate
further what is actully causing this. > > Thanks for your the time...> >
Regards> Ravi> > > > -----Original Message-----> From: FREEMAN FIREFOX
[mailto:[EMAIL PROTECTED] > Sent: Sunday, December 23, 2007 1:17 PM> To: Ant
Users List; [EMAIL PROTECTED]> Subject: Re: Error running
C:\toos\Java\jdk1.6.0_03\bin\javac.exe compiler> > > Hi,> > Can u send the xml
file or atleast the lines dat causes the error> > Regards> Sumudu> > > On Dec
23, 2007 10:30 AM, Ravi Roy <[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> >
wrote:> > > Hi Freeman,> > Thanks for your reply, but it does not help, because
Ant is able to find > javac.exe before giving this error, it is able to compile
more than 20> subprojects using javac.exe, but when it tries to compile Junit
tests then> it gives this error, I think some thing breaking it is on classpath
itself..> > I m investigating in this direction now.> > Thanks again for giving
time to the problem!> > Regards> Ravi> > > -----Original Message-----> From:
FREEMAN FIREFOX [mailto:[EMAIL PROTECTED]> Sent: Saturday, December 22, 2007
10:12 PM> To: Ant Users List> Subject: Re: Error running
C:\toos\Java\jdk1.6.0_03\bin\javac.exe compiler > > > Hi Peter,> > Sorry I
apologize. It was mistake the correct path is as follows. This is> how I have
set the path & it works.> > Type the following the in the Command Prompt:> >
set ANT_HOME=C:\ant1.7 > set JAVA_HOME=C:\jdk1.4> set
PATH=%PATH%;%ANT_HOME%\bin> > This will work. If you create a bat file you
don't need to set the path> every time you just need to run the bat file. Type
the following in a> notepad save it with the extension of .bat This will save
you time on> setting the path.> > ECHO OFF> CLS> set ANT_HOME=E:\ant> set
JAVA_HOME=D:\jdk14> set PATH=%PATH%;%ANT_HOME%\bin> ver> ant -version> pause> >
Just let me know if this works for you> > Thanks> Bye> Sumudu> > > > On Dec 21,
2007 10:02 PM, Peter Reilly <[EMAIL PROTECTED]> wrote: > > > JAVA_HOME should
not be the bin directory of the java installation. It> > should be the jdk
installation directotry - in your case:> > C:\tools\Java\jdk1.6.0_03> >> >> >
This does *not* the same as the java.home system/ant property (which> > points
to the jre).> >> >> > Use ant -diagnostics so see what ant thinks of the
environment.> >> > Peter> >> >> > On Dec 21, 2007 4:12 PM, FREEMAN FIREFOX <
[EMAIL PROTECTED]> wrote:> > > Hi Ravi,> > >> > > Set the JAVA_HOME as:
C:\tools\Java\jdk1.6.0_03\bin> > >> > > and also the ANT_HOME should be set to
the bin of the ANT. > > >> > > Setting the path to C:\toos\Java\jdk1.6.0_03
will result in compiler> > error.> > > Path should be set to bin> > >> > >
Regards> > > Sumudu> > >> > > > > > On Dec 21, 2007 3:07 PM, Ravi Roy <[EMAIL
PROTECTED]> wrote:> > >> > > > Hi All,> > > >> > > > I have strange error -
Error running > > > > C:\toos\Java\jdk1.6.0_03\bin\javac.exe compiler, I have
Windows XP> > > > sp2 with Ant 1.7.1alpha (my own Ant built version). I have a
big> > > > project which compiles and build successfully but when JUnit tests >
> > > starts and at compile time of junit tests it gives this error.> > > >> >
> > I have installed JDK 1.6 under C:\tools and JAVA_HOME is set as> > > >
environment variable to C:\toos\Java\jdk1.6.0_03. If I use ant > > > >
-diagnostics ant gives me java.home as per below :> > > >> > > > java.home :
C:\tools\Java\jdk1.6.0_03\jre> > > >> > > > Though JAVA_HOME set as environment
variable in XP and java.home> > > > reported by ant is different, this is a bug
?> > > >> > > > Similiar bug on> > > >
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6271061> > > > suggest to
copy javac.exe and tools.jar under> > > > C:\tools\Java\jdk1.6.0_03\jre but not
of any help.> > > >> > > > Error stacktrace : > > > >> > > >
D:\programs\Regression-Tests.xml:30: Error running> > > >
C:\tools\Java\jdk1.6.0_03\bin\javac.exe compiler at> > > >
org.apache.tools.ant.ProjectHelper.addLocationToBuildException (> > > >
ProjectHelper.java:508)> > > > at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)> > > > at> > > >
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java > > :105)> > >
> at> > > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java> >
:288)> > > > at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)>
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(> > > >
DelegatingMethodAccessorImpl.java:25)> > > > at
java.lang.reflect.Method.invoke(Method.java:597)> > > > at
org.apache.tools.ant.dispatch.DispatchUtils.execute (> > DispatchUtils.java> >
> > :106)> > > > at org.apache.tools.ant.Task.perform(Task.java:348)> > > > at
org.apache.tools.ant.Target.execute(Target.java:357)> > > > at
org.apache.tools.ant.Target.performTasks(Target.java:385)> > > > at
org.apache.tools.ant.Project.executeSortedTargets(Project.java> > :1337)> > > >
at org.apache.tools.ant.Project.executeTarget (Project.java:1306)> > > > at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(> > > >
DefaultExecutor.java:41)> > > > at
org.apache.tools.ant.Project.executeTargets(Project.java :1189)> > > > at
org.apache.tools.ant.Main.runBuild(Main.java:758)> > > > at
org.apache.tools.ant.Main.startAnt(Main.java:217)> > > > at
org.apache.tools.ant.launch.Launcher.run(Launcher.java :257)> > > > at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)> > > >> > > > Does
somebody know what is reason for this ?> > > >> > > > Regards> > > > Ravi. > >
> >> > > > ------------------------------------------------------------------>
> > > ---> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]> <mailto:[EMAIL
PROTECTED]> > > > > For additional commands, e-mail: [EMAIL PROTECTED]> > > >>
> > >> > >> > >> > > --> > > A.K.A - FREEMAN FIREFOX> > >> >> >
---------------------------------------------------------------------> > To
unsubscribe, e-mail: [EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> > > For
additional commands, e-mail: [EMAIL PROTECTED]> >> >> > > --> A.K.A - FREEMAN
FIREFOX> > >
--------------------------------------------------------------------- > To
unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL
PROTECTED]> > > > > > > -- > A.K.A - FREEMAN FIREFOX >
_________________________________________________________________
Don't get caught with egg on your face. Play Chicktionary!
http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_dec