"Error starting modern compiler" when using ANT javac task

1,833 views
Skip to first unread message

Andreas Schilling

unread,
Jun 29, 2011, 2:46:24 AM6/29/11
to jenkins...@googlegroups.com
hi everyone!

we currently face the following problem: we compile a project using the ANT javac task and when we set the JDK for the project to 1.5 compiling fails with the error "Error starting modern compiler". When we set it to 1.6 it works. I think we understood that this has something to do with the fact that the "surrounding" JVM is 1.6 but still we don't totally understand what to do in order to fix it.
But maybe to ask a second question: is selecting the JDK for the project of relevance when we use the ANT javac task? When calling that one we set the source and target parameters like that:
<javac source="1.5" target="1.5">
So maybe we're trying to fix something that's not a problem :-)

Thanks and kind regards,

Andreas Schilling
CAE Processes & Data Management
-------------------------------------------------------------------
Dipl. Inf. Andreas Schilling
Senior Software Architect

TWT GmbH
Science & Innovation
Bernhäuser Str. 40 - 42
73765 Neuhausen

Tel: +49 - 7158 - 17 15 - 673
E-Mail: andreas....@twt-gmbh.de
--------------------------------------------------------------------
www.twt-gmbh.de
--------------------------------------------------------------------
Geschäftsführung: Dimitrios Vartziotis, Joachim Laicher (stv.)
Registergericht: Amtsgericht Stuttgart, HRB Nr. 212778
Umsatzsteuer: ID-Nr.: DE147841145
--------------------------------------------------------------------

Andreas Schilling

unread,
Jul 1, 2011, 2:33:35 AM7/1/11
to jenkins...@googlegroups.com
anyone an idea on that issue? :-)
-------------------------------------------------------------------- !DSPAM:590,4e0ac985324835033717157!

Didier Durand

unread,
Jul 1, 2011, 2:52:12 AM7/1/11
to Jenkins Users
Hi,

Have a look at http://ant.1045680.n5.nabble.com/Error-starting-modern-compiler-td1346450.html

may help you

regards

didier

On Jul 1, 8:33 am, Andreas Schilling <andreas.schill...@twt-gmbh.de>
wrote:
> anyone an idea on that issue? :-)
>
> Von:    Andreas Schilling <andreas.schill...@twt-gmbh.de>
> An:     jenkins...@googlegroups.com
> Datum:  29.06.2011 08:46
> Betreff:        "Error starting modern compiler" when using ANT javac task
> Gesendet von:   jenkins...@googlegroups.com
>
> hi everyone!
>
> we currently face the following problem: we compile a project using the
> ANT javac task and when we set the JDK for the project to 1.5 compiling
> fails with the error "Error starting modern compiler". When we set it to
> 1.6 it works. I think we understood that this has something to do with the
> fact that the "surrounding" JVM is 1.6 but still we don't totally
> understand what to do in order to fix it.
> But maybe to ask a second question: is selecting the JDK for the project
> of relevance when we use the ANT javac task? When calling that one we set
> the source and target parameters like that:
> <javac source="1.5" target="1.5">
> So maybe we're trying to fix something that's not a problem :-)
>
> Thanks and kind regards,
>
> Andreas Schilling
> CAE Processes & Data Management
> -------------------------------------------------------------------
> Dipl. Inf. Andreas Schilling
> Senior Software Architect
>
> TWT GmbH
> Science & Innovation
> Bernhäuser Str. 40 - 42
> 73765 Neuhausen
>
> Tel: +49 - 7158 - 17 15 - 673
> E-Mail: andreas.schill...@twt-gmbh.de
> --------------------------------------------------------------------www.twt-gmbh.de
Reply all
Reply to author
Forward
0 new messages