On Wed, 2018-05-02 at 08:57 -0400, Kushal wrote:
Hi,
I don't know what I am doing wrong but I just installed Fedora 28 on a
new machine and I can't get javac so I will copy paste some terminal
output so someone can tell me what I did wrong
```@bash
[kus@localhost ~]$
[kus@localhost ~]$ dnf info java-openjdk
Last metadata expiration check: 0:22:54 ago on Wed 02 May 2018 08:32:45 AM EDT.
Installed Packages
Name : java-openjdk
Epoch : 1
Version : 10.0.0.46
Release : 10.fc28
Arch : x86_64
Size : 533 k
Source : java-openjdk-10.0.0.46-10.fc28.src.rpm
Repo : @System
From repo : updates
Summary : OpenJDK Runtime Environment 10
URL :
http://openjdk.java.net/
License : ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with
exceptions and GPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public
Domain and W3C
Description : The OpenJDK runtime environment.
Available Packages
Name : java-openjdk
Epoch : 1
Version : 10.0.0.46
Release : 10.fc28
Arch : i686
Size : 218 k
Source : java-openjdk-10.0.0.46-10.fc28.src.rpm
Repo : updates
Summary : OpenJDK Runtime Environment 10
URL :
http://openjdk.java.net/
License : ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with
exceptions and GPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public
Domain and W3C
Description : The OpenJDK runtime environment.
[kus@localhost ~]$ which javac
/usr/bin/which: no javac in
(/usr/share/Modules/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/kus/.composer/vendor/bin:/home/kus/.local/bin:/home/kus/bin)
[kus@localhost ~]$
```
Please install package java-openjdk-devel:
$ sudo dnf install java-openjdk-devel
This should fix your problem.
Note: This is JDK 10 (a modulare JDK). The main JDK in F28 is still
java-1.8.0-openjdk. Should you require that, use packages "java-1.8.0-
openjdk-devel".
Thanks,
Severin
> thank you much for all the hard work
>
> sincerely,
> _______________________________________________
> java-devel mailing list -- java-devel(a)lists.fedoraproject.org
> To unsubscribe send an email to java-devel-leave(a)lists.fedoraproject.org