Article 59TK9 I just installed linux mint then tried to install jdk then I encountered this problem, help me

I just installed linux mint then tried to install jdk then I encountered this problem, help me

by
kikyykii
from LinuxQuestions.org on (#59TK9)
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/LinuxTo 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/javathen 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/profileI 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 PATHsave 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" 1then 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" 1java 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" 1javac in auto mode

that two code is run and no prob ...

what should i do T_T

idk im newbielatest?d=yIl2AUoC8zA latest?i=hAqnY6ULttQ:uTgArD-R_I4:F7zBnMy latest?i=hAqnY6ULttQ:uTgArD-R_I4:V_sGLiP latest?d=qj6IDK7rITs latest?i=hAqnY6ULttQ:uTgArD-R_I4:gIN9vFwhAqnY6ULttQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments