You are not logged in.

#1 2019-09-05 14:57:19

sanketk_34
Member
Registered: 2019-09-05
Posts: 7

How to install oracle jdk manually?

Hey everyone, I am trying to install oracle jdk11. I tried to install through AUR package but it gives an error and says :

The source file for this package needs to be downloaded manually
since it requires a login and is not redistributable.
Please visit

can anyone tell me how to install JDK manually and setup the environment variables as I am in an urgent need. Thanks !!

Offline

#2 2019-09-05 15:09:28

loqs
Member
Registered: 2014-03-06
Posts: 9,227

Re: How to install oracle jdk manually?

Follow the links from https://www.oracle.com/java/ after agreeing to license agreement you can obtain jdk-11.0.4_linux-x64_bin.tar.gz
Placing that in the same directory as the PKGBUILD then you can build the AUR package.

Offline

#3 2019-09-05 15:12:07

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 9,164
Website

Re: How to install oracle jdk manually?

That doesn't look like the complete message, but it still seems self-explanatory. What are you struggling to understand about it?

Mod note: moving to AUR issues.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2019-09-05 15:23:12

sanketk_34
Member
Registered: 2019-09-05
Posts: 7

Re: How to install oracle jdk manually?

loqs wrote:

Follow the links from https://www.oracle.com/java/ after agreeing to license agreement you can obtain jdk-11.0.4_linux-x64_bin.tar.gz
Placing that in the same directory as the PKGBUILD then you can build the AUR package.

I didn't understand what you mean. I downloaded the jdk file from oracle, but I dont know how to build the package and setup the environment variables. Can you please explain. Sorry if this is too basic but I am totally new. Thanks!!

Offline

#5 2019-09-05 16:13:21

loqs
Member
Registered: 2014-03-06
Posts: 9,227

Re: How to install oracle jdk manually?

What command did you run that produced the output you posted in the first post of this thread?

Offline

#6 2019-09-05 16:14:17

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 7,436

Re: How to install oracle jdk manually?

https://wiki.archlinux.org/index.php/Ar … Repository

Read it completely and pay special attention to the stuff in colored boxes.


Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#7 2019-09-05 16:36:02

sanketk_34
Member
Registered: 2019-09-05
Posts: 7

Re: How to install oracle jdk manually?

loqs wrote:

What command did you run that produced the output you posted in the first post of this thread?

I just used :

yay -S jre11

Offline

#8 2019-09-05 16:40:27

loqs
Member
Registered: 2014-03-06
Posts: 9,227

Re: How to install oracle jdk manually?

Please stop using yay until you have read and understood the link Lone_Wolf provided.

Last edited by loqs (2019-09-05 16:40:40)

Offline

#9 2019-09-05 17:42:43

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 9,164
Website

Re: How to install oracle jdk manually?

How did you install yay?


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#10 2019-09-06 03:57:30

sanketk_34
Member
Registered: 2019-09-05
Posts: 7

Re: How to install oracle jdk manually?

WorMzy wrote:

How did you install yay?

I installed it by "git clone" followed by "mkpkg"

Offline

#11 2019-09-06 04:02:51

sanketk_34
Member
Registered: 2019-09-05
Posts: 7

Re: How to install oracle jdk manually?

sanketk_34 wrote:
loqs wrote:

What command did you run that produced the output you posted in the first post of this thread?


I just used :

I was successful in installing JDK. what I did is :

  • git clone the jdk11 from AUR.

  • Downloaded the tarball of jdk from oracle.

  • changed the download link of the PKGBUILD to the tarball name.

  • did makepkg in the cloned folder

now when I run "java -version" the output is :

java version "11.0.4" 2019-07-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.4+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.4+10-LTS, mixed mode)

but I can not use javac .. what should I do?

Last edited by sanketk_34 (2019-09-06 04:07:14)

Offline

#12 2019-09-06 07:43:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 7,926

Re: How to install oracle jdk manually?

Mark this thread as [SOLVED] by editing the title in your first post. Then make a new thread detailing exactly, with commands and output, what you actually want to do (why did you have to install oracle jdk in the first place? Are you sure openjdk is insufficient?) Use [ code ] not [ quote ] tags for outputs.

Offline

Board footer

Powered by FluxBB