2 questions.
java -version
When I did that it states: java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
I installed the Java 7 JDK and Java 7 JRE in the following directories respectively:
/usr/lib/jvm/jdk1.7.0 /usr/lib/jvm/jre1.7.0
Any help/direction on these 2 questions would be appreciated.
Regards.
Suppose you install Java 11 and you had another version of Java installed earlier, you can select default Java version to use using the update-alternatives --config java command.
In the Java Control Panel, click on the Java tab. Verify that the latest Java Runtime version is enabled by checking the Enabled box. Click OK in Java Control Panel window to confirm changes and close the window. Try to run same applet and verify it is now running using latest version of Java installed in your system.
Debian provides several Java implementations. Each of them have a development environment (JDK) and a runtime (known as JRE, or Java Virtual Machines JVM). Here's a list of Java environment.
sudo update-alternatives --config java
Is the command to swap it i believe.
You can then call
which java
and it should reference the version selected.
sudo update-java-alternatives -s ...
will configure all the alternatives at the same time
update-java-alternatives -l
lists the alternatives
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With