Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] Compiling Java 8 with ecj

Hey there,

I am relying heavily on ecj for local compilation or source-delivered programs in my "JavaX" Java dialect (http://javax.tinybrain.de).

ecj works great, however, I can't get it to compile Java 8 sources.

I am using ecj-4.6.3.jar and running the batch compiler.

It now seems to accept "-source 1.8", but doesn't find the interface "java.util.concurrent.Callable":

2. ERROR in /home/stefan/JavaX-Data/#1008794/main.java (at line 8)
    Callable<Boolean> attempt = () -> value2 > value;   
    ^^^^^^^^
Callable cannot be resolved to a type

The interface is there, as everything is running on Java 8 (Oracle JDK, Linux 64).

Demo program: http://tinybrain.de/1008794

Any ideas?

Stefan

Back to the top