sadegh.nordeh New Member Friday at 9:48 AM #1 Hello When I use Simple Library Compiler to build a library, unfortunately I get this error error: cannot find symbol new Thread(() -> { ^ symbol: method metafactory(Lookup,String,MethodType,MethodType,MethodHandle,MethodType) location: interface LambdaMetafactory Fatal Error: Unable to find method metafactory Error. Click to expand... And my Java version is 1.8 and I did everything but I couldn't compile it.
Hello When I use Simple Library Compiler to build a library, unfortunately I get this error error: cannot find symbol new Thread(() -> { ^ symbol: method metafactory(Lookup,String,MethodType,MethodType,MethodHandle,MethodType) location: interface LambdaMetafactory Fatal Error: Unable to find method metafactory Error. Click to expand... And my Java version is 1.8 and I did everything but I couldn't compile it.
Erel B4X founder Staff member Licensed User Longtime User Sunday at 5:48 AM #2 What is the path to android.jar under Tools - Paths Configuration? Upvote 0
Johan Schoeman Expert Licensed User Longtime User Sunday at 8:43 AM #3 sadegh.nordeh said: Hello When I use Simple Library Compiler to build a library, unfortunately I get this error And my Java version is 1.8 and I did everything but I couldn't compile it. Click to expand... I dont think SLC likes Lamda expressions such as the "->" expression in the code. I might be wrong but have had similar issues before with Lamda expressions and had to modify the Java code to do away with Lamda expressions. Upvote 0
sadegh.nordeh said: Hello When I use Simple Library Compiler to build a library, unfortunately I get this error And my Java version is 1.8 and I did everything but I couldn't compile it. Click to expand... I dont think SLC likes Lamda expressions such as the "->" expression in the code. I might be wrong but have had similar issues before with Lamda expressions and had to modify the Java code to do away with Lamda expressions.
agraham Expert Licensed User Longtime User Sunday at 8:56 AM #4 @Johan Schoeman is correct. SLC, or rather BADoclet, requires Java 8 but Java 8 does not support lambda expressions so you need to recode them. Upvote 0
@Johan Schoeman is correct. SLC, or rather BADoclet, requires Java 8 but Java 8 does not support lambda expressions so you need to recode them.
Johan Schoeman Expert Licensed User Longtime User Sunday at 2:57 PM #5 agraham said: @Johan Schoeman is correct. SLC, or rather BADoclet, requires Java 8 but Java 8 does not support lambda expressions so you need to recode them. Click to expand... It takes a bit of browsing the web to convert it but it can be done. Upvote 0
agraham said: @Johan Schoeman is correct. SLC, or rather BADoclet, requires Java 8 but Java 8 does not support lambda expressions so you need to recode them. Click to expand... It takes a bit of browsing the web to convert it but it can be done.
Pendrush Well-Known Member Licensed User Longtime User Sunday at 3:57 PM #6 Johan Schoeman said: It takes a bit of browsing the web to convert it but it can be done. Click to expand... One click on lambda in IntelliJ Ultimate. Upvote 0
Johan Schoeman said: It takes a bit of browsing the web to convert it but it can be done. Click to expand... One click on lambda in IntelliJ Ultimate.
Erel B4X founder Staff member Licensed User Longtime User Monday at 5:44 AM #7 Lambdas were introduced in Java 8. I guess that SLC sets the source compatibility to a lower version. I will check it. Upvote 0
Lambdas were introduced in Java 8. I guess that SLC sets the source compatibility to a lower version. I will check it.