Download specific java version






















I saw it, it didn't work Add a comment. Active Oldest Votes. Improve this answer. Juvenik Juvenik 6 6 silver badges 24 24 bronze badges. MartenCatcher 2, 7 7 gold badges 22 22 silver badges 35 35 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. I am working on a Java 8 service that is called by a Java 7 application. Edit: A better solution is presented by the answer from Ondrej , which obviates remembering aliases. Original Answer: Adding a solution for people with multiple Java versions installed We have a large codebase, most of which is in Java.

Landrum Jonathan E. Unless you need maven 2 and 3 for various projects, in which case you already have mvn2 and mvn3 defined and the naming gets a bit funky when Java versions also come into play Show 1 more comment. In the POM, you can set the compiler properties, e. Edward Ross Edward Ross 2, 1 1 gold badge 16 16 silver badges 16 16 bronze badges. As of compiler-plugin version 3.

Can you use version 9, 10 11 instead of 1. X for those versions? Somehow, with Java 15 and Maven 3. Edit your mvn. Ronan Quillevere Ronan Quillevere 3, 1 1 gold badge 26 26 silver badges 40 40 bronze badges. Ondrej Burkert Ondrej Burkert 5, 2 2 gold badges 26 26 silver badges 25 25 bronze badges. The best answer,! This is the best solution on the page, and should have been the accepted answer. How this config works in pom. This is the best answer and should have been the accepted answer.

Toolchains are designed for this very scenario. Adding my two cents and explicitly providing the solution. Jonathan Jonathan 2, 1 1 gold badge 20 20 silver badges 28 28 bronze badges. In maven 3. You can set Maven to use any java version following the instructions below. Install jenv in your machine link Check the available java versions installed in your machine by issuing the following command in command line.

Ranuka Ranuka 7 7 silver badges 11 11 bronze badges. Pankaj Pankaj 3 3 silver badges 9 9 bronze badges. On windows, I just add multiple batch files for different JDK versions to the Maven bin folder like this: mvn Guo Ferrell Guo Ferrell 96 1 1 silver badge 3 3 bronze badges.

Ruslan Ruslan 5, 1 1 gold badge 18 18 silver badges 34 34 bronze badges. Saveendra Ekanayake Saveendra Ekanayake 2, 5 5 gold badges 30 30 silver badges 41 41 bronze badges. Tonino Tonino 9 9 silver badges 22 22 bronze badges. Paulo Merson Please use code formatting while posting your answer.

Good approach checking the executable logic, lucky that it's a bash script. Technotronic Technotronic 7, 3 3 gold badges 37 37 silver badges 52 52 bronze badges. Bernhard Thalmayr Bernhard Thalmayr 2, 1 1 gold badge 10 10 silver badges 7 7 bronze badges. Martin Vich Martin Vich 1 1 gold badge 5 5 silver badges 21 21 bronze badges. Well this is true and false.

Create a free Team What is Teams? Learn more. Asked 7 years, 1 month ago. Active 1 year, 5 months ago. Viewed 29k times. I updated my My Question is, how can I install a specific Version of java 8? Vadimo Vadimo 1 1 gold badge 1 1 silver badge 7 7 bronze badges.

Add a comment. Active Oldest Votes. First you need which architecture OS you have. If you have 64 bit OS in present it is probably follow this steps. Thami Bouchnafa 4 4 bronze badges. This was great, any chance of an edit for the UNDO of the update-alternatives? Unfortunately because of oracle's certifcate scheme if you do wget --https-only it fails since the file resolves to download. I'd really perfer to use apt to install software in general.

Is there really no way to get specific java 8 versions through apt? Note you might still need to run update-alternatives --config java to point to the newer version.



0コメント

  • 1000 / 1000