To host your project at Savannah, your project needs to run under a free software Java suite such asor GCJ + GNU Classpath.
Free Java is moving forward, but not completely yet.
Sun recently released code from the JDK v1.6, but not all of it. Some of the code cannot be released by Sun under the GNU GPL and need to be replaced. Currently this means you need to get "binary blobs" to get a fully functionnal Free JDK from Sun.
- http://www.fsf.org/news/fsf-welcomes-gpl-java.html: FSF news
- http://openjdk.java.net/legal/binary-plugs-2007-05-08.html: the current version still requires non-free parts in non-trivial areas such as sound system, font rasterizer, graphics rasterizer, SNMP, crypto areas and build system.
- http://openjdk.java.net/ using Free Software build tools and provides replacements for the binary plugs with code from the GNU Classpath project." project provides a harness to build the source code from
That's why it is important to rely on a completely free Java suite. Until a completely freeis out, relying on Sun's Java is not acceptable yet. A Java suite is made up of 3 parts:
- a compiler,
- a Java interpreter, called JVM or Java Virtual Machine (unless you compile natively),
- and a Java API library.
(This problem is very similar to the issue that occured a few years ago when the Qt library was non-free yet still used by free software project.)
The free software Java suite we recommend is:
- GCJ, the GNU Compiler for Java, part of the GCC (GNU Compiler Collection). Compiles to either .class or native executables - http://gcc.gnu.org/
- GIJ, the GNU Interpreter for Java, also part of GCC
- and GNU Classpath, the free replacement for the Java API (the
classes in the
javapackage) - http://www.gnu.org/software/classpath/
With, this becomes:
- Compiler: javac
- JVM: java
- Class library: classes minus binary blobs, completed using Classpath and possibly dedicated code
What we expect is that you make sure your Java application compiles and runs under a free one, now and in the future.
If your project runs fine, your project meets this requirement. If not, we ask you to modify your project so that it does.
If you did not start coding your project, you should definitely consider using another programming language.
What about blackdown?
Sun's is not the only proprietary Java suite. Blackdown is not free either.
What about J2ME?
J2ME is not really Java (aka J2SE). J2ME (Java 2 Micro Edition) is meant for very small chips and smartcards (the ones in your next cell phone or credit card), without garbage collectors or even floats. I think Sun actually plays a very small part in it (it's rather a brading job, plus applying naming conventions) - and I don't think GCJ can be a free replacement for it right now (check http://gcc.gnu.org/ml/java/2005-03/msg00066.html for a bit of background).
Sun now plans to release J2ME as free software as well :) This is done progressively.
phoneME (https://phoneme.dev.java.net/downloads_page.html) is a first free J2ME release, under the GNU GPL (minus some hardware support for certain chipsets and devices that Sun's partners didn't allow them to release under the GPL).
I carefuly follow the API, and do not make use of the com.sun package. Is it enough?
No, you need to test your application and make it works, right now, under a free software java suite. Relying on a standard, be it de facto or de jure, does not in itself free your application from proprietary dependencies.
Are there other free Java suites?
You can have a look at kaffe (JVM), sable-vm (JVM), jikes (compiler)...
As far as I know, all free Java suites use GNU Classpath, at least partially.
Check the links below for more information.
We recommend you read Richard Stallman's Free But Shackled - The Java Trap at http://www.gnu.org/philosophy/java-trap.html, to understand the ethical problem.
For technical help (servets...), the following documentation may be useful: http://www.debian.org/doc/manuals/debian-java-faq/
free-java-sdk Debian package aims at providing an
all-working Java environment.