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 ~]$
```
thank you much for all the hard work
sincerely,
On 2018-05-02 14:57, 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
[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 ~]$
Hi,
you need to install java-devel (provided by java-1.8.0-openjdk-devel). java (java-openjdk) is just runtime.
Michael
thank you much for all the hard work
sincerely, _______________________________________________ java-devel mailing list -- java-devel@lists.fedoraproject.org To unsubscribe send an email to java-devel-leave@lists.fedoraproject.org
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
[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@lists.fedoraproject.org To unsubscribe send an email to java-devel-leave@lists.fedoraproject.org
Thank you much. It worked perfectly.
```text
[kus@localhost ~]$ sudo dnf info java-devel [sudo] password for kus: Last metadata expiration check: 1:04:33 ago on Wed 02 May 2018 08:57:08 AM EDT. Error: No matching Packages to list [kus@localhost ~]$ sudo dnf install java-devel Last metadata expiration check: 1:04:44 ago on Wed 02 May 2018 08:57:08 AM EDT. Dependencies resolved. ========================================================================================================================================================================= Package Arch Version Repository Size ========================================================================================================================================================================= Installing: java-1.8.0-openjdk-devel x86_64 1:1.8.0.171-4.b10.fc28 updates 9.8 M Installing dependencies: java-1.8.0-openjdk x86_64 1:1.8.0.171-4.b10.fc28 updates 245 k
Transaction Summary ========================================================================================================================================================================= Install 2 Packages
Total download size: 10 M Installed size: 41 M Is this ok [y/N]: y Downloading Packages: (1/2): java-1.8.0-openjdk-1.8.0.171-4.b10.fc28.x86_64.rpm 1.4 MB/s | 245 kB 00:00 (2/2): java-1.8.0-openjdk-devel-1.8.0.171-4.b10.fc28.x86_64.rpm 1.6 MB/s | 9.8 MB 00:06 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 1.5 MB/s | 10 MB 00:06 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing :
1/1 Installing : java-1.8.0-openjdk-1:1.8.0.171-4.b10.fc28.x86_64
1/2 Running scriptlet: java-1.8.0-openjdk-1:1.8.0.171-4.b10.fc28.x86_64
1/2 Installing : java-1.8.0-openjdk-devel-1:1.8.0.171-4.b10.fc28.x86_64
2/2 Running scriptlet: java-1.8.0-openjdk-devel-1:1.8.0.171-4.b10.fc28.x86_64
2/2 Running scriptlet: java-1.8.0-openjdk-1:1.8.0.171-4.b10.fc28.x86_64
2/2 Running scriptlet: java-1.8.0-openjdk-devel-1:1.8.0.171-4.b10.fc28.x86_64
2/2 Verifying : java-1.8.0-openjdk-devel-1:1.8.0.171-4.b10.fc28.x86_64
1/2 Verifying : java-1.8.0-openjdk-1:1.8.0.171-4.b10.fc28.x86_64
2/2
Installed: java-1.8.0-openjdk-devel.x86_64 1:1.8.0.171-4.b10.fc28 java-1.8.0-openjdk.x86_64 1:1.8.0.171-4.b10.fc28
Complete! [kus@localhost ~]$ javac -version javac 1.8.0_171 [kus@localhost ~]$
```
sincerely,
In general, you can use the alternitaves to figure out what RPM provides java utilities on a functioning system. Like this.
$ ls -la `which javac` lrwxrwxrwx. 1 root root 23 May 1 15:59 /usr/bin/javac -> /etc/alternatives/javac $ ls -la /etc/alternatives/javac lrwxrwxrwx. 1 root root 69 May 1 15:59 /etc/alternatives/javac -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-4.b10.fc28.x86_64/bin/javac $ rpmquery -f /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-4.b10.fc28.x86_64/bin/javac java-1.8.0-openjdk-devel-1.8.0.171-4.b10.fc28.x86_64
On Wed, May 2, 2018 at 10:04 AM, Kushal kushaldeveloper@gmail.com wrote:
Thank you much. It worked perfectly.
[kus@localhost ~]$ sudo dnf info java-devel [sudo] password for kus: Last metadata expiration check: 1:04:33 ago on Wed 02 May 2018 08:57:08 AM EDT. Error: No matching Packages to list [kus@localhost ~]$ sudo dnf install java-devel Last metadata expiration check: 1:04:44 ago on Wed 02 May 2018 08:57:08 AM EDT. Dependencies resolved. ============================================================ ============================================================ ================================================= Package Arch Version Repository Size ============================================================ ============================================================ ================================================= Installing: java-1.8.0-openjdk-devel x86_64 1:1.8.0.171-4.b10.fc28 updates 9.8 M Installing dependencies: java-1.8.0-openjdk x86_64 1:1.8.0.171-4.b10.fc28 updates 245 k Transaction Summary ============================================================ ============================================================ ================================================= Install 2 Packages Total download size: 10 M Installed size: 41 M Is this ok [y/N]: y Downloading Packages: (1/2): java-1.8.0-openjdk-1.8.0.171-4.b10.fc28.x86_64.rpm 1.4 MB/s | 245 kB 00:00 (2/2): java-1.8.0-openjdk-devel-1.8.0.171-4.b10.fc28.x86_64.rpm 1.6 MB/s | 9.8 MB 00:06 ------------------------------------------------------------ ------------------------------------------------------------ ------------------------------------------------- Total 1.5 MB/s | 10 MB 00:06 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : java-1.8.0-openjdk-1:1.8.0.171-4.b10.fc28.x86_64 1/2 Running scriptlet: java-1.8.0-openjdk-1:1.8.0.171-4.b10.fc28.x86_64 1/2 Installing : java-1.8.0-openjdk-devel-1:1.8.0.171-4.b10.fc28.x86_64 2/2 Running scriptlet: java-1.8.0-openjdk-devel-1:1.8.0.171-4.b10.fc28.x86_64 2/2 Running scriptlet: java-1.8.0-openjdk-1:1.8.0.171-4.b10.fc28.x86_64 2/2 Running scriptlet: java-1.8.0-openjdk-devel-1:1.8.0.171-4.b10.fc28.x86_64 2/2 Verifying : java-1.8.0-openjdk-devel-1:1.8.0.171-4.b10.fc28.x86_64 1/2 Verifying : java-1.8.0-openjdk-1:1.8.0.171-4.b10.fc28.x86_64 2/2 Installed: java-1.8.0-openjdk-devel.x86_64 1:1.8.0.171-4.b10.fc28 java-1.8.0-openjdk.x86_64 1:1.8.0.171-4.b10.fc28 Complete! [kus@localhost ~]$ javac -version javac 1.8.0_171 [kus@localhost ~]$
sincerely, _______________________________________________ java-devel mailing list -- java-devel@lists.fedoraproject.org To unsubscribe send an email to java-devel-leave@lists.fedoraproject.org
java-devel@lists.fedoraproject.org