Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
是否可以在Java8应用程序Maven中使用依赖于Java11的库?_Java_Maven_Dependencies_Maven 3 - Fatal编程技术网

是否可以在Java8应用程序Maven中使用依赖于Java11的库?

是否可以在Java8应用程序Maven中使用依赖于Java11的库?,java,maven,dependencies,maven-3,Java,Maven,Dependencies,Maven 3,我试图在Java8应用程序中包含Java11依赖的库 低于 java: cannot access com.test.Manager bad class file: /C:/com/test/my-test/1.0.0-SNAPSHOT/my-test-1.0.0-SNAPSHOT.jar!/com/test/Manager.class class file has wrong version 55.0, should be 52.0 Please remove or mak

我试图在Java8应用程序中包含Java11依赖的库

低于

java: cannot access com.test.Manager
  bad class file: /C:/com/test/my-test/1.0.0-SNAPSHOT/my-test-1.0.0-SNAPSHOT.jar!/com/test/Manager.class
    class file has wrong version 55.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

库和应用程序都使用maven作为构建工具


是否仍要解决此问题?

如果您有一个使用JDK 8运行的lib/app,则无法使用使用JDK11构建的lib/dep…如果您有一个使用JDK 8运行的lib/app,则无法使用使用JDK11构建的lib/dep。。。