Describe when someone would need this information. For example "when connecting to wi-fi for the first time".
Add the steps involved:
PATH=./:$PATH:$HOME:/<javaHome>/bin
CLASSPATH=/etc/<javaHome>/jre/lib/rt.jar
JAVA_HOME=/etc/<javaHome>/
JDK_HOME=$JAVA_HOME
JRE_HOME=/etc/<javaHome>/jre/
public class SimpleTestApplication
{
static public void main( String[] args )
{
System.out.println( "Hello world\n");
}
}
If you have multiple JVMs installed you can switch between them using the "alternatives" commands
update-alternatives --install [link] [name] [path] [priority]
So after installing the JDK enter the following command to add it to the alternatives table
update-alternatives --install "/usr/bin/java" "java" /usr/lib/jvm/java-11-openjdk-amd64/bin/java 2 |
Now you have to specify which on should be the default version to run for the java command, so use this command
update-alternatives --set [name] [path]
update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java |
You may also want to use visual panels to communicate related information, tips or things users need to be aware of. |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|