hi,team。I am working on version 0.9.6.1 and I foun...
# all-things-deployment
c
hi,team。I am working on version 0.9.6.1 and I found that there are both Java11 and Java8 in the project, but only Java11 is referenced in the Docker file. Therefore, in order to build successfully, I actively referenced Java8 apk --no-cache add tar curl openjdk8 openjdk8-jre perl bash coreutils gcompat \
Copy code
&& apk --no-cache add tar curl openjdk8 openjdk8-jre perl bash coreutils gcompat \
&& apk --no-cache add openjdk11-jre --repository=<http://dl-cdn.alpinelinux.org/alpine/edge/community> \
&& apk --no-cache add openjdk11 --repository=<http://dl-cdn.alpinelinux.org/alpine/edge/community> \
If so, do I need to specify the default Java JDK as Java11? I noticed that when I started, I was prompted to need a higher version, and my default Docker is Java8? java.lang.UnsupportedClassVersionError: com/linkedin/metadata/boot/OnBootApplicationListener has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
o
Java 8 is only used for a few specific submodules, you should be using Java 11