Sun's right move: GPL Java

Sun's right move: GPL Java


Today marks the rebirth of Java. Sun has announced their intent to release thesource code for Java under the GPL. If this isn't some of the bestnews in a long time, I don't know what is.

The freeing of Java

Sun isn't releasing all of the code. It seems there are partsof Java Sun doesn't own, and for which Sun hasn't been able tonegotiate releasing under the GPL. But, it appears this is a tiny bitof the code.

This is the most important announcement for free software in quite afew months. Java is a big part of many enterpriseapplications. Although the free software world has had Blackdown and Kaffe as a Java platforms, theyare not nearly as complete as the official Sun version, though bothare very good free software projects.

Now free software projects can use Java without worry or care. Coupledwith the most excellent SWTwidget set, Java isn't a bad choice for desktop applications. Theyhave provided a "classpath exception," meaning proprietary closedsoftware can include the Java libraries as they do now, without worryof GPL violation.

It will take a little while to get the source code released. Sun saysit expects a "fully buildable Java SE Development Kit (JDK) basednearly entirely on open-source code" to be released in the first halfof 2007. I'm not sure what "nearly entirely" means here, but I'mtrusting Sun on this, at least for now.

I don't question Sun's decision to free up Java. They have proven afriend to free software in the past. An inconstant friend, but afriend nonetheless. Their decision to use the GPL is pleasing andsurprising. Perhaps this signals a new direction in Sun's dedicationto software freedom.

There will be a lot of speculation that Sun is doing this in responseto C# and .Net. That may be their motivation. Or it might be that theyare finally conceding that free software is an excellent developmentmodel. It's done wonders for OpenOffice, for instance. Or it might bethey are finally giving in to those of us who have been asking themfor years to completely open up Java.

Whatever their reasons, this is a banner day. James, Jonathon, I thank you andall the others at Sun who have worked hard to release Java out intothe world. This is a contribution that will outlast any other of Sun'slegacies.

Category: 

Comments

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

First off a little comment: Blackdown isn't free software (nor open-source software if you care to be technical about the terms).

Now for the main part. I'm wondering if the GPL was the best choice, my thoughts heading towards the LGPL. From what I've heard, Java is rather prevalent in the proprietary software world. Putting Java under the GPL would prevent those proprietary vendors from using Java, and thus leave the door open for someone to create another proprietary Java. Is this what the "classpath exception" is supposed to alleviate? If not, discuss ;)

--fow is too lazy to login

Anthony Taylor's picture

Mea culpa! You are completely correct about Blackdown. Thanks for pointing that out. I had forgotten the controversy around Blackdown years ago, and didn't do proper research.

The "classpath exception" seems to imply they are creating a linking exception similar to that of gcc's libgcc, which states simply you are not required to GPL your source code if you merely link against libgcc. This should put Sun's Java implementation on par with gcc, freedom-wise.

So, that's what the "classpath exception" is supposed to alleviate. At least, from what I can glean from the various statements made by folks like Jonathon Schwartz.

Anthony Taylor's picture

So, after a little more digging, I find that Sun intends to use the GNU Classpath exception, as in the same one used for GNU/Classpath and Kaffe.

So, there you have it. It's not just another variant, it's the exact same as everyone else using the GPL for free Java.

David Sugar's picture

Historically I have avoided Java in part because of the lack of freedom, and in part one of the consequences that lack of freedom, the lack of Java being able to be properly packaged, optimized, and integrated on a free operating system. However, I have wanted a cross-platform environment for building gui/management tools and certain types of services, especially one with as rich and complete a cross-platform "standard library" as Java offers. I had hopes the existing free Java's would fill this gap, and I think they were starting to get much more usable.

I did not seriously consider Mono because it actually offered the poorest code quality, least portability, and lowest performance, of several "free" implimentations of a .net system, and because while the core language spec is "free", the some of the key libraries that would have made it a fully compatible cross-platform solution were not.

Terry Hancock's picture

I may be a little out of date on Java, but the last time I looked into it, the most popular GUI environment for Java was Swing, but there was no drop-in free software replacement (so this was a frequent reason to have to drop packages).

Is Swing included in the collection of software Sun is releasing under the GPL?

I spent about an hour following links above, but I'm not able to figure this out. I think I just don't know enough about Java (and the alphabet soup surrounding it) to know. Questions like this are essential to figuring out what packages the new release will liberate.

Anthony Taylor's picture

I was unsure when I wrote this, which was why I mentioned SWT. That, and my preference for SWT over Swing.

Their announcement said they were releasing all of J2SE eventually, which includes the Swing libraries. So, assuming they really mean the entire J2SE environment, that should include Swing, and Beans (including CORBA), and the whole 9 yards.

I haven't been able to find an entire list of the libraries and whatnot, nor even a definitive timeline. But, I infer it does include Swing.

Terry Hancock's picture

Actually I prefer Python for my own projects, so my interest is mostly in what packages will be freed by this action. So I'm more immediately interested in the popular/common dependencies being free. Since many people used Swing, it's really good news that it is (most likely) included! Of course, I've heard that SWT is very good (possibly better than Swing).

IOW, I'm mainly evaluating this in terms of benefits to end users.

On the other hand, Java's less-than-perfect licensing was a major reason for me to pass it over as a language. Now that that is no longer an obstacle, I may well give it another chance. I think there are still a lot of good technical reasons for preferring Python for my projects, but there may be some room for Java (or Java/Jython) projects in my future.

I wonder how Kaffe/Sable/etc developers feel about this? After all, a major motivation for those projects was to ‘liberate’ Java, but there's little doubt that the original Sun Java will largely replace them now that it is free (and yet, would it have been freed if they didn't exist?).

mjkaye's picture
Submitted by mjkaye on

I interviewed lead Kaffe developer, Dalibor Topic, on my "Cutting Free" blog.

His feelings on the matter are interesting, and his expertise proves rather useful.

--
Cutting Free - Free Software at the cutting edge
cuttingfree.blogsome.com

Author information

Anthony Taylor's picture

Biography

Tony Taylor was born, causing his mother great discomfort, and has lived his life ever since. He expects to die some day. Until that day, he hopes to continue writing, and living out his childhood dream of being a geek.

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!