Ask Your Question

How to install jdk source on fedora 29

asked 2018-12-25 10:57:38 -0500

christianbueno gravatar image

updated 2018-12-25 11:14:41 -0500

I need reference it to my Eclipse IDE.

I have installed the following java packages:

[root@localhost ~]# dnf list installed java-*
Installed Packages
java-1.8.0-openjdk.x86_64               1:         @updates
java-1.8.0-openjdk-devel.x86_64         1:         @updates
java-1.8.0-openjdk-headless.x86_64      1:         @updates
java-1.8.0-openjdk-src.x86_64           1:         @updates
java-11-openjdk-headless.x86_64         1:              @updates
java-openjdk-headless.x86_64            1:      @updates
[root@localhost ~]# 

And I am currently using java-1.8.0-openjdk:

[root@localhost ~]# alternatives --config java
image description

I need the source for java-1.8.0-openjdk.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-12-25 11:14:01 -0500

christianbueno gravatar image

updated 2018-12-25 11:19:14 -0500

You must run the following command on terminal.

$ sudo dnf install java-1.8.0-openjdk-src

That command will add the file to the java-1.8.0-openjdk directory.

image description

Now reopen Eclipse IDE, e.g. information for Collection Class is displayed already.

image description

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-12-25 10:57:38 -0500

Seen: 170 times

Last updated: Dec 25 '18