btw im sorry if my english bad ... I am not fluent in speaking English . so i use translate. this is my prob
i check my version first
Code:
Linux rizky 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
To prevent system conflicts and confusion between different versions of java , i use
Code:
sudo apt-get purge openjdk-*
then I create a directory where we store the Oracle Java JDK / JRE binaries
Code:
sudo mkdir -p /usr/local/java
then i download oracle java jdk . the version is
jdk-15.0.1_linux-aarch64_bin
I Copy Java Binaries to directory / usr / local / java
Then I extracted the java binaries (.tar.gz) in the directory / usr / local / java.
I Edit the system PATH file / etc / profile and add the following system variables for the system path
Code:
sudo gedit /etc/profile
I Scroll down and add the following script at the end of the line
Code:
JAVA_HOME=/usr/local/java/jdk1.8.0_60
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH
save and exit ...
Tells the system where the Oracle Java JDK / JRE is located (here s the prob )
This command notifies the system that Oracle Java Web Start is available for use.
Code:
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk-15.0.1/bin/javaws" 1
then the output is ...
update-alternatives: error: alternative path /usr/local/java/jdk-15.0.1/bin/javaws doesn't exist
what should i do before i do that code i do this
This command notifies the system that the Oracle Java JRE is available for use.
Code:
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk15.0.1/bin/java" 1
java in auto mode
and
This command notifies the system that the Oracle Java JDK is available for use.
Code:
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk-15.0.1/bin/javac" 1
javac in auto mode
that two code is run and no prob ...
what should i do T_T
idk im newbie