Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Compiling with BREE JavaSE-11

Hi everyone,

I am having trouble getting Tycho to compile our project when we update
some bundles to require JavaSE-11.

The build both contains bundles with BREE JavaSE-1.8 and some with

We configure the compiler to <useJdk>BREE</useJdk> (and have the
corresponding toolchains configured)

Using tycho 1.7.0 this lead to errors in the JavaSE-11 bundles:

"option -bootclasspath not supported at compliance level 9 and above"

(described here, I guess:

So I tried using the current Tycho 2.0.0-SNAPSHOT

Now, however, I get this trace for the JavaSE-1.8 bundles:

Caused by: java.lang.NumberFormatException: For input string: "1.8"
    at java.lang.NumberFormatException.forInputString
    at java.lang.Integer.parseInt (
    at java.lang.Integer.parseInt (
    at org.eclipse.tycho.compiler.jdt.JDTCompiler.compileInProcess
    at org.eclipse.tycho.compiler.jdt.JDTCompiler.performCompile

I assume this is due to the jdt.prefs compiler source/compliance level
being "1.8" in that case.

My guess is that in the change for the original bug

lines 360 and following, instead of "releaseToJDKLevel" maybe
"versionToJdkLevel" should be used?

However, I could very well be wrong here and everything should work just
fine with Tycho 1.7. Any help or hints appreciated.

Kind regards,

Back to the top