mmornati / springboot-osgi-sample

OSGi framework integrated into SpringBoot application
Apache License 2.0
38 stars 18 forks source link

can use java version 8 ? #15

Open iyangpengyu opened 2 years ago

iyangpengyu commented 2 years ago

the project version is jdk15, but i want use jdk8 can`t work ; i want konw why ?

mmornati commented 2 years ago

In the end I guess I just used some code specific to JDK >11 in this exemple. But all the libs, and mainly the Osgi one which is interesting here, it is working with jdk8. So yes, you can make it jdk8 compatible.

It should be better, for your application, to upgrade to newer LTS, 11 or 17, cause they are having lot of improvements in the JVM itself.