tutazine.blogg.se

How to check java version in linux
How to check java version in linux








how to check java version in linux how to check java version in linux

Make sure you copy the script before you edit it, just in case. You could edit this list to only be the VM you want to use and then stop/start to force it to use the VM you want. To check the Javac version, type the following command: javac -version. sudo update-alternatives install / usr / bin /javac javac / usr / lib / jvm / jdk-16.0.2 / bin /javac 1. You'll find a section labelled "candidates" and notice how the loop runs through the possible JVMs that might be on a system. To install the compiler, just use the same command as before, only this time replace java with javac. Find the start script (Red Hat RPM install places it in /etc/rc.d/init.d/jenkins) and read through it. Jenkins start script is written to try and "guess" your VM so it has easier installation across multiple Linux flavors. However, if you mean you want the entire service to run from a different VM, that is a little trickier. The new JDK will now appear and you can select it to build your project. Once added, you go into the project you want to build and click "Configure." Again, about half way down will be a "JDK" drop down. On the Jenkins Main Page, to the Left click "Manage Jenkins." Access "Global Tool Configuration" menu, and under this menu there is a location about half way down that should say "JDK Installations." Click that button and it will open a new menu where you can add an alternate JDK.










How to check java version in linux