I am not able to install the java compiler on fedora (
*https://docs.fedoraproject.org/en-US/Fedora_Core/6/html/Release_Notes/sn-Jav... https://docs.fedoraproject.org/en-US/Fedora_Core/6/html/Release_Notes/sn-Java.html* ).
I read that fedora not support directly gcj ... So I try to work around, to install it indirectly, but I have to much problem to find the necessary dependencies...
Ho to do ? any advice will welcome
Angelo
On Sun, Jan 6, 2019 at 3:23 AM Angelo Moreschini mrangelo.fedora@gmail.com wrote:
I am not able to install the java compiler on fedora (
https://docs.fedoraproject.org/en-US/Fedora_Core/6/html/Release_Notes/sn-Jav...
).
I read that fedora not support directly gcj ... So I try to work around, to install it indirectly, but I have to much problem to find the necessary dependencies...
Ho to do ? any advice will welcome
Angelo
That's a very old version of the Fedora docs. I'm pretty sure gcj is a dead project. Fedora now ships with OpenJDK. In the latest version (Fedora 29), there are several versions available. To see them, run: sudo dnf repoquery --whatprovides */bin/javac
You'll probably want either JDK 8 or 11, so one of the following should work for you: sudo dnf install java-1.8.0-openjdk-devel # if you want JDK 8, specifically sudo dnf install java-11-openjdk-devel # if you want JDK 11, specifically sudo dnf install java-openjdk-devel # if you want the latest OpenJDK, currently 11
Tank you Christopher,
I know "jdk" that I use regularly, but I am looking for something different. The development with JDK produce .jar files that are compressed files made with byte-code (.files.class ). ...To run jar files, you need the java environment (the command is "java -jar xxx.jar").
I look for a possibility to get directly executable files in Linux environment. They are some tools that convert jar filer in executable for the Windows environment.. (Launch4j, Excelsior <very expensive!!>, ...).
I am looking for a a real compiler in Linux environment for the Java language, a compiler that produce directly executable files (as gcc is for the C language)...
On Sun, Jan 6, 2019 at 11:51 AM Christopher ctubbsii@fedoraproject.org wrote:
On Sun, Jan 6, 2019 at 3:23 AM Angelo Moreschini mrangelo.fedora@gmail.com wrote:
I am not able to install the java compiler on fedora (
https://docs.fedoraproject.org/en-US/Fedora_Core/6/html/Release_Notes/sn-Jav...
).
I read that fedora not support directly gcj ... So I try to work around, to install it indirectly, but I have to much
problem to find the necessary dependencies...
Ho to do ? any advice will welcome
Angelo
That's a very old version of the Fedora docs. I'm pretty sure gcj is a dead project. Fedora now ships with OpenJDK. In the latest version (Fedora 29), there are several versions available. To see them, run: sudo dnf repoquery --whatprovides */bin/javac
You'll probably want either JDK 8 or 11, so one of the following should work for you: sudo dnf install java-1.8.0-openjdk-devel # if you want JDK 8, specifically sudo dnf install java-11-openjdk-devel # if you want JDK 11, specifically sudo dnf install java-openjdk-devel # if you want the latest OpenJDK, currently 11 _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
On 1/6/19 5:24 PM, Angelo Moreschini wrote:
I am looking for a a real compiler in Linux environment for the Java language, a compiler that produce directly executable files (as gcc is for the C language)...
Unfortunately there is probably nothing like gcj anymore. I remember using objdump to look at the assembly instructions produced by the Java code in the past, gcj was a very fascinating technology.
Pity that this project is no longer maintained for Fedora.
I believe that, perhaps, it is some Linux distribution that support it. I did some tests, for example with -------------------- rpm -ivh java-compiler/java-1.4.2-gcj-compat-1.4.2.0-40.111.3mdv2007.1.x86_64.rpm -------------------- but I could not finish the installation because the dependencies:
This is a problem that involves strategic choices about Java language (perhaps Oracle could examine the possibility of managing the Java language with an compiler type gcc used for the C language 😊).
Perhaps someone is more informed of me on this subject ?
Thank you
On Sun, Jan 6, 2019 at 11:31 PM Roberto Ragusa mail@robertoragusa.it wrote:
On 1/6/19 5:24 PM, Angelo Moreschini wrote:
I am looking for a a real compiler in Linux environment for the Java
language, a compiler that produce directly executable files (as gcc is for the C language)... Unfortunately there is probably nothing like gcj anymore. I remember using objdump to look at the assembly instructions produced by the Java code in the past, gcj was a very fascinating technology.
-- Roberto Ragusa mail at robertoragusa.it _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org