How Do I Switch Java in Linux?
Contents How Do I Change the Default Java Path in Linux? Steps Change to Your Home Directory. Cd $Home. Open The. Bashrc File. Add the Following Line to the...
Contents
How do I change the default Java path in Linux?
Steps
- Change to your home directory. cd $HOME.
- Open the . bashrc file.
- Add the following line to the file. Replace the JDK directory with the name of your java installation directory. export PATH=/usr/java/
/bin:$PATH. - Save the file and exit. Use the source command to force Linux to reload the .
How do I enable Java on Linux?
Enabling the Java Console for Linux or Solaris
- Open a Terminal window.
- Go to the Java installation directory. …
- Open the Java Control Panel. …
- In the Java Control Panel, click the Advanced tab.
- Select Show console under the Java Console section.
- Click the Apply button.