Ask Your Question
0

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:1.8.0.191.b12-11.fc29         @updates
java-1.8.0-openjdk-devel.x86_64         1:1.8.0.191.b12-11.fc29         @updates
java-1.8.0-openjdk-headless.x86_64      1:1.8.0.191.b12-11.fc29         @updates
java-1.8.0-openjdk-src.x86_64           1:1.8.0.191.b12-11.fc29         @updates
java-11-openjdk-headless.x86_64         1:11.0.1.13-4.fc29              @updates
java-openjdk-headless.x86_64            1:11.0.1.13-8.rolling.fc29      @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
1

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 src.zip 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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 93 times

Last updated: Dec 25 '18