Change Processing API level to use LAMBDA

edited November 2017 in Using Processing

So I've got the below code snippet in Processing 3.3.6:

menuBarButtons.add(new TextButton("File", 0, 0, 20, menuBarHeight, (() -> println("Test")) ));

However, processing gives the error

Lambda expressions are allowed only at source level 1.8 or above

This is quite easy to fix in any normal java IDE by changing the JRE in the build path configuration, but I can't find any option for this in the settings. I tried copy pasting a more up to date JRE into the processing folder, but to no avail. Please help me.

Tagged:
Sign In or Register to comment.