sudo update-alternatives -config javaĪll available Java versions will be listed as shown below, with a sequence number. From that list, you can select which is the default version, you can want to keep. The update-alternatives command is very helpful in switching between JDk versions, it will list all the installed Java versions. At any time, You can decide which Java version you want to make default version and should be used from command line automatically. You can have multiple installed versions of JDK on one machine. It will give you Java installation path C:\opt\jdk-8.0.2\bin\javac.exe How to switch Java version You can find the Java installation path on Ubuntu using following command: where javac It will give path of Java installation directory, if you have multiple versions installed, then only the default Java version (set in your system) wll be displayed. You can find the Java installation path on Ubuntu using following command: which javac Make sure JavaScript is enabled in the browser.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |