Re: [Building] Building with JDK11

2022-07-18 Thread Sean Owen
Why do you need Java 11 bytecode though? Java 8 bytecode runs fine on Java 11. The settings in the build are really there for testing, not because it's required to use Java 11. On Mon, Jul 18, 2022 at 10:29 PM Gera Shegalov wrote: > Bytecode version is controlled by javac "-target" option for Ja

Re: [Building] Building with JDK11

2022-07-18 Thread Gera Shegalov
Bytecode version is controlled by javac "-target" option for Java, and by scalac "-target:" for Scala JDK can cross-compile between known versions. Spark uses 1.8 as source and target by default controlled by the Maven property java.version

Re: [Building] Building with JDK11

2022-07-18 Thread Szymon Kuryło
Ok, so I used a docker image `adoptopenjdk/openjdk11:latest` as a builder, and still got version 52 classes. pon., 18 lip 2022 o 09:51 Stephen Coy napisał(a): > Hi Sergey, > > I’m willing to be corrected, but I think the use of a JAVA_HOME > environment variable was something that was started by

Re: [Building] Building with JDK11

2022-07-18 Thread Stephen Coy
Hi Sergey, I’m willing to be corrected, but I think the use of a JAVA_HOME environment variable was something that was started by and continues to be perpetuated by Apache Tomcat. … or maybe Apache Ant, but modern versions of Ant do not need it either. It is not needed for modern releases of A

Re: [Building] Building with JDK11

2022-07-17 Thread Sergey B.
Hi Steve, Can you shed some light why do they need $JAVA_HOME at all if everything is already in place? Regards, - Sergey On Mon, Jul 18, 2022 at 4:31 AM Stephen Coy wrote: > Hi Szymon, > > There seems to be a common misconception that setting JAVA_HOME will set > the version of Java that is u

Re: [Building] Building with JDK11

2022-07-17 Thread Stephen Coy
Hi Szymon, There seems to be a common misconception that setting JAVA_HOME will set the version of Java that is used. This is not true, because in most environments you need to have a PATH environment variable set up that points at the version of Java that you want to use. You can set JAVA_HO

Re: [Building] Building with JDK11

2022-07-15 Thread Tufan Rakshit
maybe try intellij or some other IDE with SBT . Maven has been always magical for me Best Tufan On Sat, 16 Jul 2022 at 00:11, Sean Owen wrote: > Java 8 binaries are probably on your PATH > > On Fri, Jul 15, 2022, 5:01 PM Szymon Kuryło > wrote: > >> Hello, >> >> I'm trying to build a Java 11 Sp

Re: [Building] Building with JDK11

2022-07-15 Thread Sean Owen
Java 8 binaries are probably on your PATH On Fri, Jul 15, 2022, 5:01 PM Szymon Kuryło wrote: > Hello, > > I'm trying to build a Java 11 Spark distro using the > dev/make-distribution.sh script. > I have set JAVA_HOME to point to JDK11 location, I've also set the > java.version property in pom.xm

[Building] Building with JDK11

2022-07-15 Thread Szymon Kuryło
Hello, I'm trying to build a Java 11 Spark distro using the dev/make-distribution.sh script. I have set JAVA_HOME to point to JDK11 location, I've also set the java.version property in pom.xml to 11, effectively also setting `maven.compile.source` and `maven.compile.target`. When inspecting classe