Xavier Portebois
Xavier Portebois

Reputation: 3504

Compilation errors in Jenkins but not in Eclipse

We're coding a Java6 project under Eclipse Indigo and we currently have some compilations differences between our dev environment under Eclipse and our integration one with Jenkins.


The fact is that we're getting some compilation errors only on Jenkins, like:


The question here is not to solve this problems; with a few changes in our source code we succeeded in making Jenkins compiled.

The question is: why does Jenkins compile in an other way than our Eclipse? Is there some magical parameters given to the compiler or the JVM that could make such a big difference?

Upvotes: 4

Views: 2020

Answers (1)

free_easy
free_easy

Reputation: 5129

Eclipse uses its own compiler. In a very few cases there are little differences between the Eclipse Compiler and the OpenJDK one. For more general information see also:

http://www.eclipse.org/jdt/core/

How does Eclipse compile classes with only a JRE?

Edit:

The compilation error with the interfaces might be related to this JDK bug: https://bugs.java.com/bugdatabase/view_bug?bug_id=6908259

Upvotes: 5

Related Questions