Failed to run the app with jre 1.8
See original GitHub issueI tried to use the recently released 4.5.2, but I was unable to use it facing the following:
Caused by:
java.lang.NoSuchMethodError: java.util.Optional.or(Ljava/util/function/Supplier;)Ljava/util/Optional;
at org.lognet.springboot.grpc.autoconfigure.NettyServerBuilderSelector.selectImports(NettyServerBuilderSelector.java:46)
at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:581)
... 113 more
Optional.or(...) is available since java 9. Is this the intended behavior?
See https://docs.oracle.com/javase/9/docs/api/java/util/Optional.html#or-java.util.function.Supplier- See https://github.com/heowc/SpringBootSample/pull/449/checks?check_run_id=2759829808#step:8:424
Issue Analytics
- State:
- Created 2 years ago
- Comments:12
Top Results From Across the Web
Cannot run JAR with JRE 1.8_311 compiled with Java 17
Yes, you understand the problem correctly: An app compiled for Java 17 cannot be run on a Java 8 runtime. You have choices:....
Read more >Webconsole failed to run with Java updated to 1.8.0_351-b31
Our system admins have upgraded JJRE 1.8.0_341-b31 to 1.8.0_35 1-b31 post which we are unable to run the web-console version 6.10.41 Dollar.
Read more >Known Issues for JDK 8 - Oracle
This document describes known issues in the Oracle JDK 8 release. ... The command javaws <jnlp_url> fails to launch the cached application if...
Read more >Troubleshooting tips for running Java
Use Java · Restart your browser after installing Java to enable the new version · Give permission to run Java, when prompted by...
Read more >Fix Java Error: Unable to launch application - YouTube
Fix Java Error : Unable to launch application. Watch later. Share. Copy link. Info. Shopping. Tap to unmute.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

thanks @heowc , I think I’ll use
options.compilerArgs.addAll(["--release", "8"])because tool chain slows down the build by installingjdk1.84.5.3was released