question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to run the app with jre 1.8

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
jvmletcommented, Jun 7, 2021

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

1reaction
jvmletcommented, Jun 8, 2021

4.5.3 was released

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found