Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Open Source

Sun Open Sources Java Under GPL 535

prostoalex writes "The embargo is off, and Associated Press is reporting on Sun releasing Java under GPL. Sun is hoping that this step will attract more developers, as well as extend the lifespan of Java. The article notes that this is 'one of the largest additions of computer code to the open-source community', and that Java is currently being run on something like 3.8 Billion devices worldwide." From the article: "Rich Green, Sun's executive vice president of software, said the company hopes to turn more developers into Java programmers, who may then create additional software to support Sun products. 'The open-sourcing of this really means more — more richness of offerings, more capability, more applications that consumers will get to use,' Green said. 'The platform itself will become a place for innovation.' All the Java source code is expected to be released by March 2007, Green said. The move covers all Java technology, which includes software that runs on handheld devices, personal computers and servers."
This discussion has been archived. No new comments can be posted.

Sun Open Sources Java Under GPL

Comments Filter:
  • bravo (Score:5, Insightful)

    by molnarcs ( 675885 ) <csabamolnar AT gmail DOT com> on Monday November 13, 2006 @07:20AM (#16821456) Homepage Journal
    I don't think the Mono folks are rejoicing ;) With this step, SUN has became the largest commercial contributor to the free and open source software pool. OpenOffice.org, OpenSolaris, now JAVA - well, kudos!
  • Huzza! (Score:2, Insightful)

    by Anonymous Coward on Monday November 13, 2006 @07:26AM (#16821482)
    This will remove, at a stroke, one of the largest issues of licence trouble in the *nix world. Fully Free server offerings can now be broader, and the Free desktop gets access to one of the three major ways of bundling sophisticated apps into web pages(Not that I like the practice much; but if Flash, Java, and ActiveX have to exist, I'd rather that more be Freely supported than less).

    I'm really impressed with Sun on this one.
  • by Ksempac ( 934247 ) on Monday November 13, 2006 @07:27AM (#16821486)
    Come on, you dont do the same kind of applications with a script language like Python and a lower level, general purpose language such as C, C++ or Java.
    Script languages are good for small applications but when it comes to big and/or commercial software you need something else. Java is probably one of the most used language (with C and C++) in commercial applications. So yes it is important.
  • Re:GPL for all? (Score:3, Insightful)

    by moro_666 ( 414422 ) <kulminaator@gmai ... Nom minus author> on Monday November 13, 2006 @07:30AM (#16821510) Homepage
    If you choose mono, you choose an indirect control of microsoft all over your code. Good luck & god speed.
  • Re:Holy Shit! (Score:3, Insightful)

    by binaryfinery ( 765601 ) on Monday November 13, 2006 @07:33AM (#16821532)
    one down, http://www.regdeveloper.co.uk/2006/11/07/adobe_fla sh_firefox/ [regdeveloper.co.uk] one to go?
  • Re:Holy Shit! (Score:4, Insightful)

    by marcello_dl ( 667940 ) on Monday November 13, 2006 @07:34AM (#16821542) Homepage Journal
    I think we must thank microsoft and its C# initiative, er... plan for world domination, for convincing Sun to open up. That couldn't be done 10 years ago when Java was the only player, and it being free as in beer was already a step forward compared to other environments.
  • Re:Holy Shit! (Score:5, Insightful)

    by LarsWestergren ( 9033 ) on Monday November 13, 2006 @07:37AM (#16821558) Homepage Journal
    Why the heck didn't Sun do this 10 years ago? It would have save the world a LOT of grief.

    Because 10 years ago, before Java had built up the momentum it has today, a certain company deliberately embraced, extended and corrupted the core libraries with their own OS specific extensions, and shipped this version with their operating system until they were forced by court to stop. Had they succeeded Sun would have lost control of the language to the other company, or it would have been forked to irrelevance. This understandably made Sun a bit paranoid about having total control over Java for quite a while.
  • by Captain Kirk ( 148843 ) on Monday November 13, 2006 @07:38AM (#16821564) Homepage Journal
    I am grateful to Sun and so is everyone who uses free software. Its just heartbreaking to think of the amount of effort that has been made obsolete by this decision been taken now instead of 10 years ago. A huge opportunity was wasted.

    Just think if Sun had done this in the 90s. There would never have been a GTK/Qt appliactions split because all software would have been written in Java. Assuming the deveopers allowed open source fixes to the performance, Linux, Mac and Windows users would all be using the same free applications and the desktop OS would simply be a JRE support system. A huge investment of volunteer time in GTK apps, in Qt apps, in Mono apps, in the now obsolete ClassPath project - all that work could have been productively spent developing Java applications. .Net would never exist as why would anyone bother? Sun has lost huge amounts of money over the last decade on software and subsidised it with hardware sales. As a GPL project, Java will be considerabley less expensive to them.

    Its great that Sun have finally released Java. Its instructive to see that all they achived by 10 years of keeping it under a restrictive license is huge financial losses for themselves, the emergence of .Net as an alternative and the waste of the volunteer labor of developers who should be Sun's greatest allies.
  • by Anonymous Coward on Monday November 13, 2006 @07:48AM (#16821634)
    Well, it is not so simple, Java 10 years ago was nothing in comparation with Java today (I wouldn't actually call it usefull). Also, there was all that MS J++ fiasco, then a patent ligitation and deal MS and Sun had two years ago....lots of stuff happened, and it is really hard to tell how would things played out if Sun OSed Java 10 (or even 5) years ago.

    I personally think timing is great. Java6 is a great piece of software, lets start from that point and see if we can make it better.
  • by Iloinen Lohikrme ( 880747 ) on Monday November 13, 2006 @07:58AM (#16821682)
    I'm very happy that Sun is going to bring Java -platform to Open Source and under GPL license.

    I believe that this move by Sun will increase development speed of Java and more importantly it will make Java more common. By having Java as a GPL, there is no reason left why Linux distributions wouldn't include Java in default installation. By becoming a standard part of Linux installations, it will gather more mind share from developers, both open source and commercial, and make developing of Java based applications more lucrative. It's interesting to see if this move will bring Java over a tipping point in desktop environments and lead to a situation where more and more applications are based on Java, leading to a total commodization of desktop.

    When Java will become more standard part of a desktop, I believe that it will change deeply on how we build our applications. I think that the future is for applications that have desktop application component that is integrated to a server application. Already it's quite easy with Java to develop server software that works via multiple interfaces, ie. web and desktop. The only question for now has been, do all clients have Java, maybe in the future there is no need to ask this question.
  • by Espectr0 ( 577637 ) on Monday November 13, 2006 @08:05AM (#16821734) Journal
    I wonder what is going to happen to these three projects?
    Let's hope now Java integrates all the good features of C#, like true generics.
  • by OldBus ( 596183 ) on Monday November 13, 2006 @08:16AM (#16821812)
    You make some good points about Java being more widely available than Python, but then tail off.

    Python is also compiled and byte interpreted. It is certainly not interpreted in the same fashion as a shell script. Python even keeps the bytecode versions around and wil use them later to save recompilation. Any speed difference betwen the 2 will not be due to interpreation.

    It is likely that Java will be a bit faster because there has been more resources thrown at and therefore more people able to do optimisation.

    However, the big reason is that Python is a dynamic language (similar to Perl) and the compiler cannot make the same optimisations that a more staic language, such as Java and C can. It also tends to mean an extra layer of pointer redirection (hidden behind the scenes). When you have the ability to tie ('tie' is the Perl-speak way of talking about this - not sure if they use another word in Python) variable to external resources, you can't take any chances even with consecutive reads of the same variable. This all adds time.

    As you say, you last shot is a low blow. Just because something is 'leading' does not make it the best - is Windows the best OS or IE the best browser? Maybe, maybe not - but I htink on Slashdot we'd agree there is more to it than just 'leading'. I've not used either client, but maybe Azureus is simply a better program with a better interface, maybe it is more widely available for different platforms? I have no idea - but it says nothing about the relative merits of the 2 languages as such.

  • by juhaz ( 110830 ) on Monday November 13, 2006 @08:20AM (#16821830) Homepage
    Second, it's compiled and then byte-interpreted, giving it a fairly good speed compared to Python's interpretation.

    Python is compiled and then byte-interpreted, just like Java. If you have to bring the speed argument to the table, at least bother to verify WHY it's slower before spouting nonsense.

    Also, while Python maybe be slower objectively, especially in number crunching, the significantly faster startup times and generally smaller memory usage often make it seem much snappier, which is at least as important for many if not most applications. Java GUI toolkits other than SWT are also universally regarded as slow, and Python is significantly easier to extend with C so you can speed up the parts that really need it.

    Also, Java is embeddable as a web applet.

    In theory, in practice Java applets never worked well, and have been going the way of dodo pretty much since their inception, you rarely see one these days - fortunately, painful as they were.
  • FUD (Score:4, Insightful)

    by Anonymous Coward on Monday November 13, 2006 @08:22AM (#16821856)
    That's like saying if you code C++, Bjarne Stroustrup has indirect control over your code. It's a ridiculous argument and the reason it gets any weight here at Slashdot is because it plays into that "Star Wars" mythology of the battle between good (FLOSS) and evil (Microsoft). And I'm sorry to say this but Star Wars isn't real.
  • Re:FUD (Score:3, Insightful)

    by Cyberax ( 705495 ) on Monday November 13, 2006 @08:39AM (#16821994)
    That's right, if you write in C++ then Bjarne Stroustrup (or to be more precise, C++ Standards Comittee) has indirect control over your code. But I trust them much more than I trust MS.
  • by dk.r*nger ( 460754 ) on Monday November 13, 2006 @08:40AM (#16822012)
    With Sun making Java GPL they won't have the choice of sticking with that attitude anymore. Many of our existing projects use Java already!

    I predict that you will be doing a lot of high-priority Java/.NET porting over the next few months.
  • by tomhudson ( 43916 ) <barbara,hudson&barbara-hudson,com> on Monday November 13, 2006 @08:41AM (#16822018) Journal

    Too bad java is just as slow as Mono though.

    I don't think so. While Java isn't as fast as C, it also doesn't peg my cpu at 100% on a regular basis. If Novell made their deal with the devil^H^H^H^H^HMicrosoft to protect Mono, they screwed up.

    This is interesting enough that I'm going to hit the book store for some more O'Reilly - for some Struts, Hibernate and Spring.

  • Re:GPL for all? (Score:5, Insightful)

    by molnarcs ( 675885 ) <csabamolnar AT gmail DOT com> on Monday November 13, 2006 @08:47AM (#16822076) Homepage Journal
    I think you misunderstood what I wrote. There are no patent problems with java, simply because SUN chose to license it under the GPL. Java is copyrighted by SUN, and it has a large IP portfolio over java technologies (lots of patents). As soon as they switched over to GPL, they immediately granted free use of these patents to every programmer who builds on java and distributes his code under the GPL. With SUN's choice, there are no longer any patent issues with java. Now contrast this with the deal Novell stuck with Microsoft, that guarantees a 5 year revocable (!) protective covenant for novell customers (and novell customers alone, according to SteveB himself) alone. The difference is HUGE! Of course, the details of the deal are not known - there may or may not be MS IP in Mono. Saying that there are is simply FUD, but than, Microsoft and Novell agreed not to sue each other's customers for patent infringement... which reinforces the perception that there might be patents. And which is the most likely candidate from the software stack distributed by Novell? The Linux kernel? KDE? Apart from perhaps Samba, Mono is the most likely candidate for patent infringement ... I think that is why Perens warns against it. But still, I must emphasize, that this is just my speculation. Don't take it too seriously (my original post was sarcastic, but ./ removed the evil-comment tags). One thing is certain: since SUN decided to distribute java under the GPL, as far as patents goes, it become safe. This cannot be said of Mono, even though you cannot claim the opposite either with absolute certainty... You see what meant now?
  • by bradbury ( 33372 ) <`moc.liamg' `ta' `yrubdarB.treboR'> on Monday November 13, 2006 @09:17AM (#16822306) Homepage
    Anytime I startup a Java program I want to run and hide due to fear that the pages being swapped out to make room for it will crush me where I stand.

    Maybe as open source software people will be able to look at it and ask *why* does it have to take up so much memory to do such simple jobs? Compare for example Azureus (in Java) to bittorrent (in Python).
  • Re:My only worry (Score:3, Insightful)

    by Just Some Guy ( 3352 ) <kirk+slashdot@strauser.com> on Monday November 13, 2006 @09:20AM (#16822332) Homepage Journal
    we'll see applications built on custom versions of Java that aren't compatible with each other or have fixed bugs differently to how someone else has fixed them.

    I know. I hate navigating the maze of incompatible GCC, Perl and Python implementations we're stuck with.

  • by Just Some Guy ( 3352 ) <kirk+slashdot@strauser.com> on Monday November 13, 2006 @09:23AM (#16822362) Homepage Journal
    Script languages are good for small applications but when it comes to big and/or commercial software you need something else.

    Tell that to Google. My own company has switched to Python for all future application development. If Python is a scripting language, then so is Java.

  • by fimbulvetr ( 598306 ) on Monday November 13, 2006 @09:44AM (#16822568)
    Yeah, what a pain. A distro that has principles and standards and holds them high. How could they do such a thing?
  • by Ender Ryan ( 79406 ) <MONET minus painter> on Monday November 13, 2006 @10:15AM (#16822904) Journal
    That should actually read:

    Only if C++ is patent encumbered, there are few implementations, and the only useful implementation is owned by a company that is no longer willing to try to work around the patents to produce a truly free implementation, and, in fact, has made a deal with the devil so only their own customers can legally use their implementation.

  • Comment removed (Score:3, Insightful)

    by account_deleted ( 4530225 ) on Monday November 13, 2006 @10:16AM (#16822924)
    Comment removed based on user account deletion
  • by aled ( 228417 ) on Monday November 13, 2006 @10:28AM (#16823018)
    What the people who believed this will never happen are saying now?
  • Re:GPL for all? (Score:2, Insightful)

    by nrc ( 112633 ) on Monday November 13, 2006 @10:54AM (#16823368) Homepage
    Rubbish. The MS fan boys have been hand waving away legitimate concerns about patent and licensing liability in Mono since day one. Now Novell has made it absolutely clear that Mono has patent and/or licensing liabilities and they still want to dismiss very real issues as FUD.

    Not all parts of the .Net environment are covered under ISO/ECMA standards. Even if it were completely covered, the notion that Microsoft won't violate it's own standards or ignore a toothless standards organization if it pleases is just foolish.

    You can't "fix" a patent violation. Once it's done, it's done and you're liable. Assuming that there's some work-around you might be able to remove future liability but depending on the nature of the patent there's no guarantee that's practical or even possible.

    One of the common excuses for directing OSS mindshare to MicroSoft IP encumbered technology has been that "Java is just as bad." That excuse has now been eliminated. It's time to stop wasting OSS resources helping Microsoft and Novell build elaborate IP traps.

  • by Kjella ( 173770 ) on Monday November 13, 2006 @12:30PM (#16824564) Homepage
    1. GPL doesn't require patent licenses to be granted.

    Actually, it does. If Mircosoft didn't want to grant a patent license, they could not distribute it under the GPL. The funny twist is the one Microsoft pulled with Novell - what you need to make sure is the party distributing the code (Novell) isn't the same as the one holding the patent (Microsoft). They can't give Novell a patent license because that'd hold Novell to the GPL - instead they create a covenant saying they won't sue Novell for those patents. It's in essence a patent license without actually giving one. Mircosoft could have pulled exactly the same with a subsidiary "Microsoft Java, Inc." who'd happen to be in a covenant with Microsoft, Inc. to not get sued, but everyone else is.

    7. If, as a consequence of a court judgment or allegation of patent
    infringement or for any other reason (not limited to patent issues),
    conditions are imposed on you (whether by court order, agreement or
    otherwise) that contradict the conditions of this License, they do not
    excuse you from the conditions of this License. If you cannot
    distribute so as to satisfy simultaneously your obligations under this
    License and any other pertinent obligations, then as a consequence you
    may not distribute the Program at all. For example, if a patent
    license would not permit royalty-free redistribution of the Program by
    all those who receive copies directly or indirectly through you, then
    the only way you could satisfy both it and this License would be to
    refrain entirely from distribution of the Program.
  • by Monkey-Man2000 ( 603495 ) on Monday November 13, 2006 @01:17PM (#16825216)
    This should substantially help GCJ, because last time I checked it uses the standard libraries from Classpath to compile programs. Some things were unimplemented in Classpath, and so you could run into problems compiling non-trivial applications in GCJ.
  • Re:FUD (Score:5, Insightful)

    by just_another_sean ( 919159 ) on Monday November 13, 2006 @01:32PM (#16825446) Journal
    The *reality* is that the EMCA specification for .NET CLR does not include WinForms. Mono not only implements the CLR of .Net but tries to also implelement the graphical aspects.

    With Perl and C/C++ available on just about every system out there I can't see choosig Mono for command line work. If I want to go Mono, it's because I want a common platform for creating a graphical interface. Choosing Mono means that I am hoping that they can keep up as MS continuesly developes and extends those aspects of .Net not covered by the EMCA spec. Whether they do it on purpose or not MS will break the API as time goes on and the Mono project will continuously scramble to keep up.

    Now this doesn't even take into account the new deal between MS and Novell which has a number of us Star Wars nerds nervous about patents as well. So cheap shot aside I think your take is overly simplistic and a knee jerk reaction to FOSS zealotry. Just because FOSS fans can sometimes go over the top about "teh evil MS" doesn't change the fact the MS has consistently abused their monopoly influence over the years and screwed over partner after partner.

    Bottom line, now that Java is GPL I beleive it will be the safer choice between it and Mono for cross platform development without hidden "IP violations" to worry about.
  • by TheRaven64 ( 641858 ) on Monday November 13, 2006 @03:02PM (#16826794) Journal
    The nice thing, from my perspective, about Java being GPL'd is that the FreeBSD port can easily be installed. The previous license did not allow distribution of modified versions, so you first needed to download the Java source from Sun (accepting their license), then apply the FreeBSD-specific patches, and then compile (which required a Java VM, which typically meant installing the Linux Java VM binary, and compiling using this).

    Now, I can just grab the binary (since the GPL allows binary distribution of derived works, as long as the source is available). The real question is how is the trademark licensed? Will the unofficial ports be allowed to be called Java? Or will I have to run 'KenyanPeaberry, base on Sun Java(TM)?'

The one day you'd sell your soul for something, souls are a glut.

Working...