FSDN: Savannah GNU-Friends usr local bin OFSET
[GNU-Friends] Sections: Front Page News Interviews GNU-Friends Diaries
Menu: About Submit Story FAQ Donate Search
This page brought to you by: Jonas berg, just another GNU friend.
RMS on Java
By brian, Section GNU-Friends
Posted on Thu Apr 15th, 2004 at 14:08:43 GMT
Richard Stallman has released a new article on Java, entitled "Free But Shackled - The Java Trap".

 

Free But Shackled - The Java Trap

April 12, 2004

by Richard Stallman

If your program is free software, it is basically ethical--but there is a trap you must be on guard for. Your program, though in itself free, may be restricted by non-free software that it depends on. Since the problem is most prominent today for Java programs, we call it the Java Trap.

A program is free software if its users have certain crucial freedoms. Roughly speaking, they are: the freedom to run the program, the freedom to study and change the source, the freedom to redistribute the source and binaries, and the freedom to publish improved versions. (See http://www.gnu.org/philosophy/free-sw.html.) Whether any given program is free software depends solely on the meaning of its license.

Whether the program can be used in the Free World, used by people who mean to live in freedom, is a more complex question. This is not determined by the program's own license, because no program works in isolation. Every program depends on other programs. For instance, a program needs to be compiled or interpreted, so it depends on a compiler or interpreter. If compiled into byte code, it depends on a byte code interpreter. Moreover, it needs libraries in order to run, and it may also invoke other separate programs that run in other processes. All of these programs are dependencies. Dependencies may be necessary for the program to run at all, or they may be necessary only for certain features. Either way, all or part of the program cannot operate without the dependencies.

If some of a program's dependencies are non-free, this means that all or part of the program is unable to run in an entirely free system--it is unusable in the Free World. Sure, we could redistribute the program and have copies on our machines, but that's not much good if it won't run. That program is free software, but it is effectively shackled by its non-free dependencies.

This problem can occur in any kind of software, in any language. For instance, a free program that only runs on Microsoft Windows is clearly useless in the Free World. But software that runs on GNU/Linux can also be useless if it depends on other non-free software. In the past, Motif (before we had LessTif) and Qt (before its developers made it free software) were major causes of this problem. Most 3D video cards work fully only with non-free drivers, which also cause this problem. But the major source of this problem today is Java, because people who write free software often feel Java is sexy. Blinded by their attraction to the language, they overlook the issue of dependencies, and they fall into the Java Trap.

Sun's implementation of Java is non-free. Blackdown is also non-free; it is an adaptation of Sun's proprietary code. The standard Java libraries are non-free also. We do have free implementations of Java, such as the GNU Java Compiler and GNU Classpath, but they don't support all the features yet. We are still catching up.

If you develop a Java program on Sun's Java platform, you are liable to use Sun-only features without even noticing. By the time you find this out, you may have been using them for months, and redoing the work could take more months. You might say, "It's too much work to start over." Then your program will have fallen into the Java Trap; it will be unusable in the Free World.

The reliable way to avoid the Java Trap is to have only a free implementation of Java on your system. Then if you use a Java feature or library that free software does not yet support, you will find out straightaway, and you can rewrite that code immediately.

Sun continues to develop additional "standard" Java libraries, and nearly all of them are non-free; in many cases, even library's specification is a trade secret, and Sun's latest license for these specifications prohibits release of anything less than a full implementation of the specification. (See http://jcp.org/aboutJava/communityprocess/JSPA2.pdf and http://jcp.org/aboutJava/communityprocess/final/jsr129/j2me_pb-1_0-fr-spec-license.html, for examples).

Fortunately, that specification license does permit releasing an implementation as free software; others who receive the library can be allowed to change it and are not required to adhere to the specification. But the requirement has the effect of prohibiting the use of a collaborative development model to produce the free implementation. Use of that model would entail publishing incomplete versions, which those who have read the spec are not allowed to do.

In the early days of the Free Software Movement, it was impossible to avoid depending on non-free programs. Before we had the GNU C compiler, every C program (free or not) depended on a non-free C compiler. Before we had the GNU C library, every program depended on a non-free C library. Before we had Linux, the first free kernel, every program depended on a non-free kernel. Before we had Bash, every shell script had to be interpreted by a non-free shell. It was inevitable that our first programs would initially be hampered by these dependencies, but we accepted this because our plan included rescuing them subsequently. Our overall goal, a self-hosting GNU operating system, included free replacements for all those dependencies; if we reached the goal, all our programs would be rescued. Thus it happened: with the GNU/Linux system, we can now run these programs on free platforms.

The situation is different today. We now have powerful free operating systems and many free programming tools. Whatever job you want to do, you can do it on a free platform; there is no need to accept a non-free dependency even temporarily. The main reason people fall into the trap today is because they are not thinking about it. The easiest solution to the problem of the Java Trap is to teach people not to fall into it.

To keep your Java code safe from the Java Trap, install a free Java development environment and use it. More generally, whatever language you use, keep your eyes open, and check the free status of programs your code depends on. The easiest way to verify that program is free is by looking for it in the Free Software Directory (http://www.fsf.org/directory). If a program is not in the directory, you can check its license(s) against the list of free software licenses (http://www.gnu.org/licenses/license-list.html).

We are trying to rescue the trapped Java programs, so if you like the Java language, we invite you to help in developing GNU Classpath. Trying your programs with the the GJC Compiler and GNU Classpath, and reporting any problems you encounter in classes already implemented, is also useful. However, finishing GNU Classpath will take time; if more non-free libraries continue to be added, we may never have all the latest ones. So please don't put your free software in shackles. When you write an application program today, write it to run on free facilities from the start.

Copyright (C) 2004 Richard Stallman
Verbatim copying and distribution of this entire article is permitted in any medium without royalty provided this notice is preserved.

< Professor Larry Lessig joins FSF Board of Directors (1 comments) | April 14 Demonstration and Conference Pictures (2 comments) >
Login
Make a new account
Username:
Password:

View: Display: Sort:
RMS on Java | 3 comments (3 topical, editorial) | Post A Comment
[new] sdfds (#1)
by 100003 (#680) on Tue Nov 30th, 2004 at 09:41:39 GMT
(User Info)

վĿ¼ ѵӰ ʼб վ¼ Ҫ ַȫ վĿ¼ վ Ϣ 빫˾ ٺÿһ Ӱ mp3 ѵӰ sitemap 2˽ BLOG Film Schools Business Customer Service Software Training Real Estate Management Companies Hardware Internet Security Systems Beauty Services Computers Health Camps Television Travel Golf Holidays Home and Garden Jewelry Wholesale Books Clothing Food Furniture Games Sports Web Hosting mcse training Domain Names Insurance Star Movie TV Music Game Cartoon works Laugh at the humour Hobby Photography Toy Astrology and practise divination Fashion Clothing Place of entertainment Lottery Outdoor activity Internet Software Free resources IT authentication Multimedia Hardware Communication 2 Ϸ˽ 2˽ ii˽ ˽ ˽ 漣˽ ˽ip Blog Arts Business µӰ ƼӰ DVDӰ Ӱа Ӱ mp3 mp3 mtv Ӱص а д Computers Games Health Home Kids and Teens News Recreation Reference Travel Science Shopping Society Sports
ԸŮ Ůд ģ Ӱ ͼƬ ̨ պ ŷ Ů ι Ǿֲ Ѷ ȵֱ ߹ Ů ֽ ձŮ f4 s.h.e Ȫ twins backstreet boys Ů δ֮ д Ӱ ģ װʦ Ͽ ̳ ѡ
Ӱ
Ӱ ӰԺ ߵӰ ߵӰԺ ߵ Ƶ ӰԺ Ӱ շѵӰ Ӱ Ӱ Ӱ Ƶ㲥 Ӱ Ƭ ӰƬ 鰮Ӱ Ӱּ ӰƷ ӽĿ ̨ Ƭ Ƭ ʷƬ Ƭ ϲƬ Ƭ ͨƬ ƻƬ Ƭ ֲƬ Ա Ӱ Ӱ Ƭ Ʒ ż Ƭ Ӱ ˹ ӽ ӽ Ӱӽ ӰѶϢ Ӱӵ ӰѶϢ ָ Ŀ ӽĿʱ ӰѶ ؼ Ƭ Ӱѧ Ӱ ӰӾ籾 ͥӰԺ Ӱ˾ ӰϿ ѵӰ ߵӰ btӰ ѵӰ صӰ СӰ Ӱ

mp3 midi real audio vqf mtv ŵ ok ҡ а Ʒ ֶ ŵ ϳ ŵ ּ ʿ ҥ ־ й Ĺ˾ hifi Ƭ˾ dj ֽ ֽ ݳ и
Ϸ
Ϸ Ϸ ɫ ʱս ģ ģ⾭Ӫ Ϸ Ϸ Ϸ Ϸ ģ ؼ Ϸ޸ Ϸ Ϸ Ϸ Ϸ ָ ps2 ֻϷ javaϷ Ϸ flashϷ rom Ϸ Ϸ ӳ Ϸ Ϸ Ϸ˾ Ϸٷվ
Ʒ
ۿ ʱҪ 뱩 ޵µս ¥ ССƷ սʿߴ ͸սʿ ΰ ˿ͽ Ӣ۴˵ ʥʿ è ռ å è ӣС ̽ Ů ν Ȯҹ ҵŮ Ůսʿ С ͷd С ɬŮ è ʷŬ ӷè
ЦĬ
ĬͼƬ ЦͼƬ ȤζϷ Ц ħʵ ˳ Խת Цȫ Ц Ĭѧ Ц Ĭ Ц Ĭ Ц ȤЦ Ĭ ִЦ Ц Ȥζ ̲ Ȥζ Ъ ƿ ŴЦ ͯЦ Ц У԰Ц Ƥ Ц Ц Ц ƷЦ
ռ
ռ ÿ˳ Ԥ ΢ Ф ˮ ǩ ֽ ƹ Ѫ ȡ Ԥ Ŷݼ س ÷ ħ ˮ ̲ ̲ ֮ λ Ф ̫
ʱ
ʱг ѡ Ӽ ħ Ϸ ֽ ʻ Ӱ 滭 д ҹ ָ ʱ־ ļ ݰĦ ȥ ü ױ ˶ ֲ ˮ Ѭ ױƷ Ժ
װʱ
Ůװ ʱװ ɫ з Ʒ Ӿװ Ȼ ȤԸ Ƥ ţп п ѿ ӡ װ װ Ʒ t У ް Ļ Χȹ ñ Ь ο ħ ȹ ȹ 鱦 ʯ ʯ ׹ ʯ ָ ػ ˮ ʯ ֱ ƽ ͷ Ͼʯ װ
ֳ
ֳ ɼٴ Ȫȼ ϷԺ Ժ ӰԺ ư ԰ 껪 չ ȹ ֲ ҵ ʳ ѩ ҹܻ ձ ϴԡ

ҡ ʹ˾ Ʊ Ʊ Ʊ Ʊ Ͷעָ ϲ ƱԤ ¼ ѡż ˮ Ʊ 򲩲 Ͷע 齱
˶
DZˮ ͧ ˮ Ӿ ˮ԰ ̨ ڸ߶ Ħԡ ɽ ˶ 齫 й Ĺ ֽ Χ ̫ȭ ¶Ӫ Զ Ұ ٤ 赸 ļ Ұս ˶

ղ Ʒ Ʊ 黭 Ǯ Ŷ ʯ մ ͭ ̶ Ƭ ľ ͻ 滭 ԰ Ӻؿ ģ ̻ Ʊ֤ Ʊ ſ
Ӱ
Ӱ Ӱ Ӱ Ӱ Ӱ Ӱ ӰƷ Ӱ̳ Ӱ Ӱ ɴӰ д 羰Ӱ ڰӰ Ӱ ʷƬ ˮӰ Ӱ ˾ 3dӰ Ӱ Ӱ ȫӰ Ӱ dvӰ Ӱͼ ͷ Ǽ Ӱ Ӱ Ӱʦ

ӫ ģ ң 綯 å й ţ С ż


[ Reply to This ]


[new] very well (#3)
by searchfans (#732) on Fri Apr 1st, 2005 at 15:51:20 GMT
(User Info)

holiday inn hotels deals digital camera digital camcorder golf gps headphones ipod kenneth cole laptop marriott pda plasma tv poker chips puma rolex roomba running shoes sheraton tablet pc tesco attorney british airways car real estate ugg health insurance home loan home security las vegas legal help online casino treo training mcse domain name flower camp server host office furniture Television Search Engines Lodging Management General Merchandise Games Food Employment Clothing Books Wholesale Jewelry Home and Garden Holidays Gifts Travel Flowers life insurance loans medical malpractice merchant mortgages Health Computers Homeowners Business Weight Loss Pharmacy Nursing Insurance Beauty web hosting Systems Security Programming Multimedia Intranet Internet Hardware Consultants Companies Investing Software Film Schools account bankruptcy cash credit diet distance learning equipment exercise 123 45678910111213141516171819202122232425262728293031323334353637383940
41424344454647484950515253545556575859606162636465666768697071727374757677
78798081828384858687888990919293949596979899100101102103104105106107108109110
111112113114115116117118119120121122123124125

[ Reply to This ]


 
RMS on Java | 3 comments (3 topical, editorial) | Post A Comment
View: Display: Sort:

Verbatim copying and distribution of this article is permitted in any medium, provided this notice is preserved. Images of gnu:s in the logo are © Free Software Foundation, Inc and distributed under the GNU General Public License. Comments are copyright by thir respective owner. All other material are © 2002 .