Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Java to be Open Sourced in October

Posted by Zonk on Tue Aug 15, 2006 01:02 PM
from the coffee-in-the-fall dept.
thePowerOfGrayskull writes "Sun is now stating that the Hotspot JVM and javac will be open-sourced in October of this year, with the rest to follow by the end of 2007. There is still no word as to which license it will be released under. For those who haven't seen it yet, Sun has previously opened a public developer community site for soliciting feedback and providing updates about the process."
+ -
story

Related Stories

[+] Will Sun Open Source Java? 700 comments
capt turnpike writes "According to eWEEK.com, there's an internal debate going on at Sun whether to open-source Java. (Insert typical response: "It's about time!") Company spokespersons have no official comment, as might be expected, but perhaps we could hear confirmation or denial as early as May 16, at the JavaOne conference. One commentator said, "Sun should endorse PHP and go one step forward and make sure the 'P' languages run great on the JVM [Java virtual machine] by open-sourcing Java." Would this move Java up the desirability scale in your eyes? Could this be a way to help improve what's lacking in Java?"
Offsite: C|Net Coverage
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • eh? (Score:3, Insightful)

    by slummy (887268) <shawnuth@gma i l . com> on Tuesday August 15 2006, @01:03PM (#15911179) Homepage
    "Source code for Java already is available and has been for 10 years", said James Gosling. I guess Open Source means they want free developers.
    • Re:eh? (Score:5, Insightful)

      by squiggleslash (241428) on Tuesday August 15 2006, @01:37PM (#15911417) Homepage Journal

      It's part of the easing of license restrictions that currently make it difficult to incorporate Java in certain types of Free Software project, and that cause hassle for companies like RedHat and Novell/SUSE who sincerely want to distribute Java but more than that want their operating systems to be 100% Free Software.

      It's funny. The prime difference between Open Source and Free Software is that OSS is married to a community based development model whereas Free Software is just the basic principle of it being Free. Everyone keeps using "Open Source" here, but Sun has, actually, been following the community based development model part of Open Source for years without making Java Free Software. If it's not Free Software, it's not Open Source, but Java's certainly proven you can have the advantages of Open Source without actually making your software open source.

      So why are they doing this? Well, like I said in my first paragraph, the current license and environment is too restrictive for many significant potential adopters. They're finally recognising people want the freedom, not just an open development model.

      • Re:eh? (Score:5, Interesting)

        by FST777 (913657) <frans-jan.van-steenbeek@net> on Tuesday August 15 2006, @02:23PM (#15911829) Homepage
        In the long run, this will make Java more portable too. It took the FreeBSD Foundation some serious time lobbying before they could distribute Java as a package. Even from ports (source, for the non-BSDies here), Java is a pain on FreeBSD, because the lack of support, crazy patchwork and the need to download everything by hand, whilst signing agreements.

        I really hope that we can look forward to a working, recent Java version on FreeBSD without the old bugs and the trouble with OSS-principles in the near future. Kaffe / Classpath just isn't doing the trick. I wonder what this will do to OpenOffice.org.

        It all depends on the license. I do hope this will draw some of the fine folks at Kaffe / GNU / Apache who have done a great job by recoding Java to Java itself. But then, if it isn't the GPLv3, RMS will probably keep screaming for a "real free" reversed engineered version of Java.

        Well then, off to Flash... Adobe?
  • by Anonymous Coward on Tuesday August 15 2006, @01:05PM (#15911191)
    Java to be Open Sourced in October
    Hey, it's another October Revolutinon [wikipedia.org]!

    Long live the programmer-letariat!

    "While the Copyright exists, there can be no freedom. When there is freedom there will be no Copyright."
  • Big deal for OSS (Score:5, Insightful)

    by andrewman327 (635952) on Tuesday August 15 2006, @01:05PM (#15911194) Homepage Journal
    Depending on the license that they choose, OSS purists can now utilize Java in their programs. OpenOffice.org ran into some issues [newsforge.com] when it began using Java to power some of its components. Hopefully the license under which this is released will be acceptable.
    • Re:Big deal for OSS (Score:4, Informative)

      by mrogers (85392) on Tuesday August 15 2006, @01:44PM (#15911483) Homepage
      There are already free JVMs [kaffe.org] and free Java compilers [gnu.org]. The problem is the class libraries. Java's standard libraries are huge, and free reimplementations are having a hard time keeping up [classpath.org]. Without the libraries, open source versions of javac and the JVM won't bring us significantly closer to the goal of a completely free Java platform.
        • Re:Big deal for OSS (Score:5, Interesting)

          by molarmass192 (608071) on Tuesday August 15 2006, @02:41PM (#15911993) Homepage Journal
          You can LOOK at the source all you want, but why don't you make a change, say renaming the util package to utility, post your source code, and send Sun an email with a link to your modified source code. You'll be asked to remove your modified code lickity split. The SCSL is open source but NOT redistributable. So why a less restrictive license? Say I have a KDE based distro, I want to package Java with that distro, but there's a bug in java that breaks the clipboard under KDE but not GTK (this is a real life bug) and Sun refuses to address it because they only support GTK. Under the SCSL, you're toast. Under something less restrictive, you can patch the affected class, and distribute your "fixed" rt.jar.
      • Re:Big deal for OSS (Score:4, Informative)

        by silvaran (214334) on Tuesday August 15 2006, @01:27PM (#15911351)
        Well Joe can release whatever Java interpreter he wants, there's no guarantee that anyone's going to use it. You could have 500 different forks of the Java code (license permitting), but unless they provide some huge advantage and become mainstream (see egcs/gcc, which turned out to be a good thing from what I've heard), the conformant Java interpreters/compilers/runtimes are going to remain the de facto ones to use. And Joe can sit there and run his modified version of the Java platform all he wants, while everyone else happily sticks to the comformant platforms.
      • by nuzak (959558) on Tuesday August 15 2006, @01:28PM (#15911361) Journal
        Yeah, look what happened to perl and python thanks to their open license. Incompatible bytecode everywhere.

        Why is it only Java is so fragile that it can't withstand openness?
          • by VGR (467274) on Tuesday August 15 2006, @03:19PM (#15912363)

            I know, I shouldn't feed a troll....

            You are the reason they were reluctant to make it (fully) open source.

            You obviously are confident you know more about what makes a good language than the designers of Java do. Have you read even one paper at jcp.org [jcp.org]? Have you looked at the people [jcp.org] who make up the JCP? IBM, Apple, Cisco, Intel, HP, ATI, NVidia, Creative Labs, Google (!), Apache, Apogee, Namco ... you really think you're smarter than their combined intellect and months of discussion? Trust me, you're not.

            I'm sure you and a lot of others are already giddy with excitement over the idea of making a "better Java" with const [sun.com] and operator overloading [sun.com].

            When you understand the "less is more" [sun.com] principle, you'll begin to understand why all your pet features don't belong in the language.

            • by Reverend528 (585549) on Tuesday August 15 2006, @04:17PM (#15913163) Homepage
              Have you looked at the people who make up the JCP? IBM, Apple, Cisco, Intel, HP, ATI, NVidia, Creative Labs, Google (!), Apache, Apogee, Namco ... you really think you're smarter than their combined intellect and months of discussion?

              Yeah. The individual usually is smarter than the group.

            • you really think you're smarter than their combined intellect and months of discussion? Trust me, you're not.

              Unless you're posting that from an AT&T Unix console, you're benefitting from people who had the hubris to think you're wrong.

              The road of progress was paved by people who thought the current way of doing things was dumb, and who set out to find a better alternative. This is generally regarded as a good thing (except by people with a vested interest in the old ways).

            • by Jesus_666 (702802) on Tuesday August 15 2006, @09:40PM (#15915954)
              But Java would be so much better if it was more like $MY_FAVOURITE_LANGUAGE! For example, it's lacking some features found in PHP like being mixable with HTML code and not using namespaces! And it should have the syntactic goodness of both Ruby and Haskell! Speaking of Haskell, why doesn't Java use type inference everywhere? Forcing the user to give a type only makes things complicated. Also, function declarations should not look like String foobar(int blah, int fhqwhgads) - foobar::Integer -> Integer -> String is much better for a completely nonspecific reason that everyone with two brain cells to rub together could see (just as he could see that such declarations should be optional since they could be inferred by the compiler). Also, Java should run on Dotnet and use FLTK as the main GUI toolkit.

              And Javadoc should translate all source code comments into Esperanto.
  • by Anonymous Coward on Tuesday August 15 2006, @01:12PM (#15911246)
    Is this "open source" as in "open source"?

    Is this "open source" as in Apple's "public source" Darwin project, where they're basically going "you can see and compile all the code, but no way are you going to be redistributing this as any kind of commercial project"?

    Is this "open source" as in Microsoft's "shared source" projects, where it's totally not open source at all except in a PR sense?

    Is this "open source" as in Sun's Solaris "open sourcing", where it's open source in all technical senses, but it's under an unbelievably elaborate license which exists for no reason except to engender GPL incompatibility and keep Linux from benefiting from the source release, which effectively scares everyone away from the project?

    Cuz really, unless "Java to be Open Sourced" really means "Java to be Open Sourced", it won't make a difference, acceptance of Java will continue to be held back by the perceived closedness of the Java language and real linux-unfriendliness of the Java runtime, and languages like C#/Mono will continue to make inroads until Apache finishes their Harmony project.
    • Some major things in no particular order:

      1. Open Source means Open Source. There's a list of approved licenses. Sun are aware of this, they participate in the OSI, they've submitted licenses before for approval. They're not saying "Open Source" when they mean "Shared Source" or anything like that. Who do you think they are, SGI? ;-)

      2. Jonathan Schwarz has specifically stated that the GPL is under consideration. (See his blog) It sounds like they're interested in GPL3 but obviously want to see what it has to say first.

      3. OpenOffice.org is available under the GPL. Releasing Java with a compatible license would help resolve some of the issues there are in integrating Java code with OOo code, which is a live issue right now.

      4. This is a major issue. Right now, the two major enterprise distributions, RedHat, and SUSE, are promoting alternatives to Java, be they attempted workalikes like GCJ or full blown rivals like Mono. Both RedHat and Novell are being clear on this: they don't want Java in its present form because it's not Free Software. Sun has to act. They're saying they're going to act. This is, stategically, one of their most important projects, if not their most important (Solaris wasn't, StarOffice wasn't even close. By comparison, Java is something dear to Sun's heart as the only technology they own that truly does influence the direction the entire computing industry is going in.) So you can't blame them for taking baby steps. But when they say it's going to go open source, I believe them. And when Schwarz talks about the GPL and uses phrases like "Free Software" and "Open Source" with fairly clear deference to their supporter's meanings, it's hard for me to believe they haven't done their homework, that they're not aware of the damage they'll do if they don't follow through, and that they have no intention of following through.

      • by powerlord (28156) on Tuesday August 15 2006, @01:40PM (#15911448) Journal
        C# is just a language. There is a specification for it that has been submitted to ECMA, as there are for lots of the pieces that make up MicroSoft's ".Net" initiative. Not all their ideas are bad ones, and anyone is free to implement standards.

        To quote Mono's FAQ [mono-project.com] page:

        The Mono Project is an open development initiative sponsored by Novell to develop an open source, UNIX version of the Microsoft .NET development platform. Its objective is to enable UNIX developers to build and deploy cross-platform .NET Applications. The project implements various technologies developed by Microsoft that have now been submitted to the ECMA for standardization.

        Personally its a rather nice language.

        Oh, as far as:
        There are also potential patent issues (I can't believe that there would be _no_ patents that cover C#.)

        Unless you know something the rest of us don't, this strikes me more as spreading FUD then anything else.
  • by kmahan (80459) on Tuesday August 15 2006, @04:47PM (#15913584)
    To me the real question is "When will Sun be releasing the various TCKs?" The conformance suites are what is needed to validate any of the java implementations and call them "Java" in the eyes of Sun (and their lawyers).

    As James Gosling has said -- the source to the JVMs and libraries has been available for 10 years. But the TCKs aren't available in source or binary form.
    • Re:Good (Score:5, Insightful)

      by cryfreedomlove (929828) on Tuesday August 15 2006, @01:27PM (#15911353)
      Do you have any data that shows that Mono deployment in the enterprise is increasing, relative to java deployment? Because, in my experience of 8 years of enterprise java, Mono is not making any strides. It's a backwater that a few people are toiling in.
      • Re:Good (Score:5, Informative)

        by THEbwana (42694) on Tuesday August 15 2006, @04:01PM (#15912881)
        Mmm.. thats my take as well.
        My background is 9 years in Finance/IT in various technical (mostly programming / systems engineering) roles in three European countries, working in financial institutions of the size 30K-130K employees.
        The only .Net stuff I've seen is on the client side of some internally developed trading systems. The serverside, however, is usually run as J2EE apps running in one of the many servlet/ejb containers you see in the marketplace nowadays... J2EE simply rules the serverside and SWING apps are seen quite frequently. My guess is that banks will be happier extending eclipse when writing their client apps than going the .Net route...
        Maybe the .Net route is more popular within other market segments ? Anyone working in another industry care to comment ?
    • by kherr (602366) <kevin.puppethead@com> on Tuesday August 15 2006, @01:38PM (#15911431) Homepage
      It's definitely the class libraries that make Java "java". The language is straightforward and there are decent JVM workalikes, but developers write their code around the class libraries. The problem I've always found with Java is the bloat of the class libraries, so I'd like to see open source distributions make lean and mean Java variants.

      A perfect Java distro would maybe drop all the deprecated methods (will Sun ever do that? Java 1.6 is a good opportunity...) and unbundle some of the least-used stuff like the CORBA and RMI stuff. Heck, even Swing and AWT should be optional packages. Why couldn't Java be structured sort of like a Java Web Start install, pulling in libraries only if needed. Almost everything is connected to the internet these days and good caching of libraries from trusted sources would be a decent way to get full functionality with a smaller initial footprint.

      • by 955301 (209856) on Tuesday August 15 2006, @03:20PM (#15912368) Journal
        Drop RMI? You realize that communication to EJB's is RMI right?

        And for the love of gods, why bother trimming the libraries? If you don't use the classes, they don't get loaded into the VM. Everything else is inflating including the OSes and you want to trim the programmers libraries?

        The more I look at your post, the more I realize you are straddling two fences. You say drop Swing and AWT implying that you are on the server in which case, your not downloading the JVM & libraries to the client anyway. Then you say Java needs to be like a Java Web Start install, meaning you are on the client side and therefore need the libraries you just said to toss! Oh and btw, Java Web Start is part of the jre download - if you have to download and install something to the client, why not download it all at once? Besides, the libraries *are* broken up - j2se and j2ee, correct?

    • by Jason Earl (1894) on Tuesday August 15 2006, @01:48PM (#15911524) Homepage

      Exactly. Free Software has plenty of JVMs and compilers. Heck, the Free Software world has too many JVMs and compilers. What's needed are Java compatible class libraries under a license that is both amenable to proprietary and Free Software developers.

      At this point Sun is simply trying to draw support away from the various Free Java implementations. Sun knows that if the Free Software implementations ever become popular that its chances of controling Java long term are essentially flushed down the toilet. Sun reacted too late with Solaris, and it is desperate to keep Java from suffering a similar fate. So it is doing everything in its power to keep people away from Free Software Java-alike systems.

      If Sun were serious it would A) concentrate on releasing the Java class libraries, and B) it would have given Java developers some guidance on the license that it will be using. Everything else is just fluff.

    • Re:who cares? (Score:5, Interesting)

      by 0xABADC0DA (867955) on Tuesday August 15 2006, @02:38PM (#15911969)
      What is this "native executable" you speak of? To quote morpheus, "Do you think those are instructions you are running?" Pretty much every so-called native program you run is passed through the ld.so interpreter that relocates the binary and loads shared libraries. Grep the kernel sources for "ld.so".

      The only reason you have to ship a JVM with your app is because a) Microsoft intentionally sabotages compatibility (by strong-arming Dell, etc not to ship Java) and b) because Linux distros can't legally ship it because of license restrictions. Java apps work fine on a Mac without shipping their own JVM.

      With a JVM installed as a standard system component you run your Java programs just like any other program. You just double-click or ./ it.

      Mono has convenient language syntax with C#, but that's it. The CLR bytecode cannot be interpreted well, so hotspot like optimizations are far harder to do. It's a VM trying to be everything to everybody, so it's not really great at anything. It's startup time is far slower than a gcj'd Java program and it's throughput is much less than a hotspot'd one. The only real benefit is that it is oss.