LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2020, 02:16 PM   #1
kikyykii
LQ Newbie
 
Registered: Nov 2020
Posts: 1

Rep: Reputation: Disabled
Unhappy I just installed linux mint then tried to install jdk then I encountered this problem, help me


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
 
Old 11-01-2020, 04:06 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I guess that Java Web Start is not included in the JDK that you downloaded. Where do those instructions come from?

EDIT: Wikipedia says
Quote:
Java Web Start was distributed as part of the Java Platform, and included in downloads of the JRE and JDK. It was deprecated by Oracle in Java SE 9 and removed in Java SE 11.

Last edited by berndbausch; 11-01-2020 at 04:33 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openjdk-6-jdk vs official JDK? davidstvz Debian 3 09-22-2010 02:06 PM
jdk-6u10-docs.zip jdk-6u10-docs-ja.zip CJohnsonK General 1 08-15-2010 09:38 PM
Where to get JDK 1.5.0_08 and JDK 1.6.0_10 for Linux Redhat Itanium servers java_ascii Linux - Software 1 09-22-2009 11:17 AM
32 bit JDK vs 64 bit JDK paragkalra Linux - Software 4 11-28-2007 05:36 AM
Tried to update MySQL, but then encountered problems unmet dependencies, and others. Spreegem Debian 4 01-10-2007 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration