On Wed, Oct 17, 2018 at 4:30 PM Simone Bordet [email protected] [it-torino-java-jug] <[email protected]> wrote:
> > > Ciao, > > vi ricordo il meeting di stasera (vedere email sotto)! > > Ciao a tutti, come follow-up dell'incontro di ieri sera, questa mattina ho installato Java11 :) Se avete una linux box debian-based (ubuntu e simili), con gli alternatives dovrebbe essere semplice avere piu' jdk installati e passare da uno all'altro: $ sudo update-alternatives --config java Se avete un mac, potere usare brew, che ora installa openjdk e non piu' oracle, e jenv per gestire le versioni Qui un bel post su come gestire le cose: https://stackoverflow.com/questions/52524112/how-do-i-install-openjdk-java-11-on-mac-osx-allowing-version-switching io ho fatto cosi': brew cask install java jenv add /Library/Java/JavaVirtualMachines/openjdk-11.0.1.jdk/Contents/Home/ ➜ ~ jenv versions system * 1.8 1.8.0.144 11.0 (set by /Users/frank/.jenv/version) 11.0.1 openjdk64-1.8.0.144 openjdk64-11.0.1 ➜ ~ ➜ ~ jenv versions jenv global 11.0 ➜ ~ java -version openjdk version "11.0.1" 2018-10-16 OpenJDK Runtime Environment 18.9 (build 11.0.1+13) OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode) MAVEN ho aggiornato il compiler plugin a 3.8.0 e surefire alle ultime versioni. : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> ...... Questo genera comunque dei jar "java8" con byte code version 52.0 -- Roberto Franchini "The impossible is inevitable" https://github.com/robfrank/ https://twitter.com/robfrankie https://www.linkedin.com/in/robfrank
