13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PrefacexxiiiFREE SOFTWARE AND JAVAGNU/<strong>Linux</strong> 2 is Free Software. It is Open Source. I d<strong>on</strong>’t even want to startthe debate <strong>on</strong> what each term means and which <strong>on</strong>e is “right.” One of the twoauthors of this book is a Free Software advocate, and the other is of a purelylaissez-faire attitude towards the questi<strong>on</strong> (we w<strong>on</strong>’t tell you which, althoughwe invite you to guess). But even with a deliberate decisi<strong>on</strong> to cease-fire, thequesti<strong>on</strong> remains: Is Java Open Source or Free Software?The answer is mixed. Neither Sun’s nor IBM’s Java implementati<strong>on</strong>s areOpen Source or Free Software. You may download and use them for free, butyou do not have the source code to them, nor do you have the right to makemodificati<strong>on</strong>s to them. 3 This book will cover the GNU Compiler for Java,which compiles Java source code to native machine code. The GNU Compilerfor Java (gcj) is both Open Source and Free Software. It is, however, supportingdiffering levels of the Java APIs (some packages are current, some are back at1.1.x levels) and does not fully support the AWT or Swing GUIs.However, n<strong>on</strong>e of this means that you cannot write your own Java programsand release them under a Free Software or Open Source license. So youcan certainly develop Free Software in Java. Staunch Free Software partisans(such as Richard Stallman and the Free Software Foundati<strong>on</strong>) would questi<strong>on</strong>the wisdom of doing so. Their argument would be that a Free Software productthat depends <strong>on</strong> n<strong>on</strong>-Free tools isn’t really Free Software, since to compile, use,or modify it, you need to make use of a proprietary tool.There is more than <strong>on</strong>e effort to produce a Free Software Java runtimeimplementati<strong>on</strong>. N<strong>on</strong>e of them is “ready for prime time.” It would, in ouropini<strong>on</strong>, be a very good thing for Sun to release their SDK and Java VirtualMachine as Free Software. But so far, they have steadily resisted calls to do so.2. This is the <strong>on</strong>ly time we will refer to it as “GNU/<strong>Linux</strong>.” See Secti<strong>on</strong> 7.3 for the story ofwhy GNU/<strong>Linux</strong> is the preferred name of some. We understand Stallman and the FSF’s positi<strong>on</strong>,but “<strong>Linux</strong>” is much easier <strong>on</strong> the eyes and ears than “GNU/<strong>Linux</strong>.” And that, not principle,is how names and words go into the language. For better or for worse, “<strong>Linux</strong>” is thename of the operating system.3. As we write this, a very public discussi<strong>on</strong> is taking place between Sun, IBM, and Eric Raym<strong>on</strong>d,founder of the Open Source Initiative, about opening Java under some sort of opensource license. At this time, no <strong>on</strong>e knows how this will turn out, but it is possible that Javawill be Free Software in the future.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!