GNU and the Java language

 [image of the Head of a GNU] (jpeg 7k) (jpeg 21k) no gifs due to patent problems

Table of Contents


Running Java on free operating systems

As of July 1998, there is now a free implementation of Java. This means it is now possible to run Java programs on a completely free operating system. There is also another implementation called Japhar though we primarily recommend Kaffe.

Developing Java applications

Java Software

The GNU Project accepts contributions of Java programs and maintains a list of Java programs that has been contributed. It also contains information about other Java programs which we feel is worth mentioning.

If you would like to contribute additional Java programs to the GNU project, please contact <gnu-java@gnu.org>.

Self printing Java programs

Are you in dire need of a self-printing Java program?

Dario Dariol <dadilala@tqs.it>
443 characters
import java.text.*;class a{public static void main(String x[]){char b[]={34};char c[]={123};String s[]=new String[3];s[0]="import java.text.*;class a{2}public static void main(String x[]){2}char b[]={2}34};char c[]={2}123};String s[]=new String[3];s[0]={1}{0}{1};s[1]=new String(b);s[2]=new String(c);System.out.println(MessageFormat.format(s[0],s));}}";s[1]=new String(b);s[2]=new String(c);System.out.println(MessageFormat.format(s[0],s));}}
Andy Kurnia <andykurn@comp.nus.edu.sg>
239 characters
class Q{static void main(String[]a){char q=34;String t="class Q{static void main(String[]a){char q=34;String t=;System.out.println(t.substring(0,55)+q+t+q+t.substring(55));}}";System.out.println(t.substring(0,55)+q+t+q+t.substring(55));}}
Doug Orleans <dougo@ccs.neu.edu>
331 characters
class S{public static void main(String[]a){new S().p('"',"'","class S{public static void main(String[]a){new S().p('",");}void p(char d,String q,String a,String b){System.out.println(a+d+q+','+d+q+d+','+d+a+d+','+d+b+d+b);}}");}void p(char d,String q,String a,String b){System.out.println(a+d+q+','+d+q+d+','+d+a+d+','+d+b+d+b);}}

344 chracters
class S{static char q='"';static String s="class S{static char q='';static String s=;public static void main(String[]a){StringBuffer b=new StringBuffer(s);b.insert(41,q+s+q);b.insert(23,q);System.out.println(b);}}";public static void main(String[]a){StringBuffer b=new StringBuffer(s);b.insert(41,q+s+q);b.insert(23,q);System.out.println(b);}} 
Masahiro Sekiguchi <seki@sysrap.cs.fujitsu.co.jp>
250 characters (or 236, removing "public")
class P{public static void main(String[]a){char d=34,e=39;String t="+d+t;System.out.println(t+d+';t='+d+t.replace(e,d));}}";t="class P{public static void main(String[]a){char d=34,e=39;String t="+d+t;System.out.println(t+d+";t="+d+t.replace(e,d));}}

Original Java

Let's not forget that Java is also the name of the most populous island in Indonesia, which contains the capital Jakarta and dominates the other islands.

Java is one of the main centers of gamelan music. If you have not listened to central Javanese gamelan music, we encourage you to try it. The smaller neighboring island of Bali has its own style of gamelan music, which is very different in spirit, so try them both.

Until recently, Indonesia was ruled by General Suharto, whose corrupt dictatorship which held stacked ``elections'' but imprisoned (or murdered) real opposition. Suharto came to power in 1965/66, as troops and paramilitaries killed some half a million people who were suspected of supporting the (formerly legal) Communist party.

The books of Pramoedya Ananta Toer, arguably Indonesia's greatest living author, are banned there, but some are available in English translation in English-speaking countries. (Pronounce the `oe' as in Dutch--like the `oo' in `food'.)

In 1975, Indonesia invaded East Timor (a Portuguese colony then on the verge of receiving independence); since then, Indonesian forces have murdered approximately 1/5 of the Timorese population. Two Timorese leaders received the Nobel Peace Prize in 1996.

It remains to be seen whether Suharto's successor, former Vice President Habibi, will change any of these policies.

The Clinton administration uses its considerable leverage with Indonesia to promote copyright enforcement, rather than human rights or democracy.

In the US, the East Timor Action Network <etan-us@igc.apc.org> works to inform the public about these events, and pushes to end US support for the Indonesian government and military.


Return to GNU's home page.

Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also other ways to contact the FSF.

Please send comments on these web pages to webmasters@www.gnu.org, send other questions to gnu@gnu.org.

Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.

Updated: 27 Mar 1999 jonas