ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've tried to use gcj without Sun's JRE installed, and it won't work. Has GNU (or any other free/open source group) written a free/open source Java library that could be used with gcj? I also wonder, is a free JRE out there, that could be used in place of Sun's?
I also never said that it was not possible to compile Java to byte code with gcj, did I?
Not sure what is going on in this forum lately... looks like peoples always try to prove you wrong or reply to an already answered question to increase post numbers or something
I didn't jump in to correct you and prove I am more of a man than you. We are all trying to help others, and while you didn't say gcj COULDN'T compile class code, the way you wrote your answer made it sound like gcj was limited to compiling native code. I admit I didn't read your link, but then, I wasn't the one looking for a multi-page introduction to java.
lasindi:
I've compiled and run simple java code without Sun's JRE active, although I do need it to run .class files. A fully free JVM is at www.kaffe.org, or you can use IBM's JVM (which some people swear by, but I'm pretty sure is not open source).
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Sun's JRE and JDKs are free, most of the library is open source (6667 class source files in my JDK1.5 src.zip).
Sun is actively contributing to the open source community (http://www.sunsource.net/)
Why don't you want to use Sun's JRE ?
I didn't jump in to correct you and prove I am more of a man than you. We are all trying to help others, and while you didn't say gcj COULDN'T compile class code, the way you wrote your answer made it sound like gcj was limited to compiling native code. I admit I didn't read your link, but then, I wasn't the one looking for a multi-page introduction to java.
l
CroMagnon:
I understand CroMagnon. You've not done anything wrong, nor did jlliagre. It's was me who used my butt ratter then my head before posting. I really apologize to you and everybody in this thread.
And if you're looking for a really good personal study book, look for 'Thinking in Java' which is available online for free. When you have worked through that, you will really understand the language, including it's strenghts and weaknesses.
The reason I didn't want to use Sun's libraries was that I was under the impression that these libraries aren't free. So they are? If the JRE and the libraries are all open, then is the only thing closed the compiler? It seems like it would be silly of Sun to not open the compiler for fear of forking; it's the library and the runtime that would be in "danger" of forking. I know that Sun is a well meaning company, but they should open Java more quickly.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
lasindi
The libraries are free as in free beer. They are also open source in the sense that you can view their source code as reference, but, as far as I understand, you are only allowed to modify any of the java.* (and perhaps com.sun.* and javax.*) branches inside what is called the java community program, which is open to anyone willing to participate, and free ($0) to individuals.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.