Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Sun Says Java Source Already Available 304

mjdroner writes "In an InfoWorld article, Java CTO James Gosling says that source code for Java has been available for 10 years. Gosling claims Java is close to an open source model, though discounts Sun joining the Eclipse Foundation. He goes on to say that Eclipse's endorsement of the standard widget toolkit destroyed interoperability, saying it's based on the windows API, making it problematic to run on other platforms."
This discussion has been archived. No new comments can be posted.

Sun Says Java Source Already Available

Comments Filter:
  • Re:It's available? (Score:3, Informative)

    by lokedhs ( 672255 ) on Thursday May 11, 2006 @12:38PM (#15309510)
    Easy, here it is [java.net]. Direct link to the source is here [java.net]. However, it's only been this easyly accessible since the Mustang project. And a few years back it was near impossible.

    The situation is pretty good now, but it certainly hasn't always been like that.

  • Re:It's available? (Score:3, Informative)

    by cecom ( 698048 ) on Thursday May 11, 2006 @12:39PM (#15309516) Journal
    Instead of saying anything rude, here is the f*cking link:

    http://wwws.sun.com/software/communitysource/j2se/ java2/download.html [sun.com]

    That said, the license is somewhat less than free :-)
  • Re:It's available? (Score:2, Informative)

    by AganLex ( 308537 ) on Thursday May 11, 2006 @12:39PM (#15309518) Homepage
    Its partially available, on a windows system its here:
    C:\Program Files\Java\jdk1.5.0_06\src.zip
  • Re:It's available? (Score:2, Informative)

    by magicjava ( 952331 ) on Thursday May 11, 2006 @12:39PM (#15309522)
    Download the JDK from java.sun.com. Unzip the download. The source code is located in src.zip. Has been for years.
  • Re:Concerning Java. (Score:5, Informative)

    by lokedhs ( 672255 ) on Thursday May 11, 2006 @12:40PM (#15309532)
    That's wrong. Just download the latest JDK. 1.5 or the 1.6 beta. Then double-click on SwingSet2.jar and try the demo. It's way faster than GNOME on the Linux machines I tried it on. And at least as fast if not faster than the Windows native widget set on at least some machines. Try it yourself. It really has come a long way since the early versions which were horribly slow.
  • Re:It's available? (Score:4, Informative)

    by Homology ( 639438 ) on Thursday May 11, 2006 @12:44PM (#15309582)
    Mr. Gosling, please offer us a link to the code.

    Of course the source code is available, but you have to personnally agree to a restrictive license. This is why Sun Java is not easily available as the OpenBSD Makefile for 1.5 port shows:

    # Error message for distfile.
    FETCH_MANUALLY= "You must manually fetch the distribution files, place"
    FETCH_MANUALLY+= "them in ${FULLDISTDIR} and then run make again."
    FETCH_MANUALLY+= "Get the SCSL source \& binary files:"
    FETCH_MANUALLY+= " ${DISTNAME}-src-scsl.zip"
    FETCH_MANUALLY+= " ${DISTNAME}-bin-scsl.zip"
    FETCH_MANUALLY+= "from http://wwws.sun.com/software/communitysource/j2se/ java2/download.html"
    FETCH_MANUALLY+= "Get the BSD patchset file:"
    FETCH_MANUALLY+= " bsd-jdk15-patches-3.tar.bz2"
    FETCH_MANUALLY+= "from http://www.eyesbeyond.com/freebsddom/java/jdk15.ht ml"
  • Re:It's available? (Score:4, Informative)

    by Mr. Competence ( 18431 ) on Thursday May 11, 2006 @12:45PM (#15309587)
    That would be here [sun.com] under the SCSL or here [sun.com] under the JRL. Pick your license. For an explanation, go here [sun.com]. :P
  • by DrXym ( 126579 ) on Thursday May 11, 2006 @12:48PM (#15309621)
    The source code to PGP is available too (for review), but it's not an open source product. Likewise, Java source may be available but it is not open source either. If GNU Classpath filched the Java runtime, you'd hear Sun screaming about it in no time.

    While I can understand Sun want to maintain control of the standard, they've got to open up the source. It sounds a little harsh considering .NET is not open at all (although MS do provide a reference version of their CLR), but it has to be done.

    Sun needs every friend they can get and putting Java into every distribution of Linux is one very good way to make a lot of friends. That means opening it up. Naturally they'd be frightened of some bastardized FrankenJava appearing, but they would still maintain the standards and the trademarks and they could enforce them. Who knows, perhaps opening the source will stimulate the platform once more.

    Another way of stimulating the platform is to embrace Eclipse & SWT. Sun may hate to admit it, but Swing sucks. It's a very nice and flexible API but in practice it sucks. Swing apps run with the grace and speed of a slug. Swing apps look weird even when attempting to look native. At least bundle SWT with the JRE and let people decide which to use. SWT has it's faults too, but it sure as hell transforms the UI experience of Java apps. Aside from SWT I cannot fathom why they won't embrace Eclipse. Eclipse makes Java development easy. The platform has been cursed with crappy tools (especially GUI editors) for too long and it will have to pull its socks up if it wants to compete with Visual Studio.

  • Re:Swing (Score:4, Informative)

    by cecom ( 698048 ) on Thursday May 11, 2006 @12:55PM (#15309708) Journal
    At least on my machine under Linux, Swing is definitely faster than SWT. Sounds almost absurd, but is true. I did a search some time ago and found posts claiming that IBM's official positions was that they were not interested in improving the speed of SWT-GTK. They can kiss my a** then :-)

    SWT-FOX (http://swtfox.sourceforge.net/) looks like a good idea and is supposed to be faster, but I have never been able to get it to work satisfactory (font problems, crashes). AFAIK, it is being maintained by a single person in his free time. Perhaps RedHat or Novel should support the project.

    Don't get me started on SWT anyway - I think the design is terrible; it looks like a somewhat cleaner port of MFC.
  • Re:WTF? (Score:3, Informative)

    by NutscrapeSucks ( 446616 ) on Thursday May 11, 2006 @01:01PM (#15309773)
    That's not open source.

    From your link: "The current model for Java is close to an open source model, Gosling said." So, he's not saying it is.

    And the way that the "Open Source Community" uses the term "open source" is really beyond the plain meaning and historical usage of the term; and only makes sense if you've had your ideological briefing. Java is open source in the sense that the source code is open and accessible. It just doesn't meet the "Open Source Definition".
  • Re:Download Link (Score:3, Informative)

    by throx ( 42621 ) on Thursday May 11, 2006 @01:06PM (#15309831) Homepage
    The JRE is part of the JDK.
  • Re:Swing (Score:3, Informative)

    by owlstead ( 636356 ) on Thursday May 11, 2006 @01:09PM (#15309860)
    Eclipse is running pretty well on the ubuntu 5.10 I must say. I've installed the Sun JDK 1.5 (that's the version we developers still use :) and the latest Eclipse version. I've seen some small idiosyncrasies with GNU classpath, but even that run pretty well. One should not use the default version of Eclipse. Since the installation normally consists of unzipping and running the eclipse binary, you are advised to use the latest version anyway. And I must admit that previous versions were way less responsive. It's still less responsive than Eclipse under Windows, but it definatly is workable.

    SWT is far from perfect. It's definately more a hack than Swing, which is setup very neatly. But it does not matter, it's pretty smooth, has very nice widgets and always uses the underlying platform L&F. The Swing default is the Sun look and feel, which is beautifull, but not something I want. On most applications you cannot set the L&F yourself, and the developers choose either Swing L&F, the platform L&F or even worse, AWT. As long as the Swing applications are not in agreement *themselves* and as long as Sun does not make the platform L&F the default, Swing is doomed.
  • Re:Concerning Java. (Score:1, Informative)

    by Anonymous Coward on Thursday May 11, 2006 @01:09PM (#15309867)
    Anyone who has actually made the effort to look at Swing in the past year knows it has come a long way. It looks fine, runs nice and fast and is quite robust. Download NetBeans and check it out.
  • by Anonymous Coward on Thursday May 11, 2006 @01:20PM (#15309994)
    Try Intellij.

    It runs cleanly, fast on Windows and Linux.

    Is it free? No. But the relatively small price for a professionally written IDE is well worth it.

    More related to the thread, Intellij is an example of Swing Application that is responsive and has the same look and feel on multiple platforms (specifically, any platform that runs Java 1.4).
  • by mi ( 197448 ) <slashdot-2017q4@virtual-estates.net> on Thursday May 11, 2006 @01:25PM (#15310035) Homepage Journal
    Yes, and the FreeBSD [freebsd.org] ports (jdk13 [freshports.org], jdk14 [freshports.org], jdk15 [freshports.org]) have been building the JDKs from source for years too.

    You do need to "register" with Sun to get the source, but same goes even for New York Times... The registration is free.

  • by Anonymous Coward on Thursday May 11, 2006 @01:36PM (#15310177)
    Yes, Java is opensource.
    In fact you can get the source code, if you accept to sign a licence restricting you to distribute a modified version or reuse the code elsewhere.

    So basicaly: the source is availabile (it's opensource) but not reusable freely (it's not free software).

    Sun executives often do this confusion when interpreting the F/OSS calls for a free java.

    Meanwhile, linux distributors don't make the same mistake: that's why (java being considered non-free) you won't find the Sun jdk/jre in the redistributed medias of Debian, Fedora Core, OpenSuse or Ubuntu (and *BSD, even).

  • by Raul654 ( 453029 ) on Thursday May 11, 2006 @01:42PM (#15310252) Homepage
    "Open source" is not software where the source code is freely available. It software where you can obtain the source code provided you agree to a license. That license specifies that you must make any changes to that source code available to anybody else who agrees to the same license. - This is not true. An open source licenses is one that lets you freely copy, distribute, and merge the code into your own projects. There are a number of open source licenses that do not attach themselves to derivative works, such as the Berkeley and MIT licenses (which are even freer than the GPL, in the sense that they have fewer strings attached)
  • by erbmjw ( 903229 ) on Thursday May 11, 2006 @02:10PM (#15310575)
    (*) My company wanted to standartize of Java, but backed off the plans. Middle management wanted Java for its stable and rich development environment. R&D manager flat out refused since Java is in fact closed source and there is no sence in adding another dependency to the already huge software package we have. And nobody can assure us what Sun will do tommorow - what if they drop support for M$ Windows?? There is *no* competing Java implementations. And there is no standard for Java.
    There are no competing Java implementations!?!

    If you were talking about JVM's there are "competing implementations" please see http://en.wikipedia.org/wiki/List_of_Java_virtual_ machines [wikipedia.org]. If not would you please expand/explain your statement?

    And perhaps when you were speaking of 'no standard for Java' you forgot to look into http://en.wikipedia.org/wiki/Java_Community_Proces s [wikipedia.org]?
  • Re:Swing (Score:4, Informative)

    by egomaniac ( 105476 ) on Thursday May 11, 2006 @02:26PM (#15310735) Homepage
    These issues are fixed in Java 1.6 (Mustang), due out Real Soon Now.
  • by Shambhu ( 198415 ) on Thursday May 11, 2006 @02:31PM (#15310788)
    If you Google a bit you'll see that Gosling does know how it works and that this is by no means a new conversation. Saying that it is based on the Windows API has a grain of truth to it in that while it uses a number of APIs on different platforms, the most work has been done on the Windows API version and (this is just hearsay) that may have influenced the overall development as well.

    Here's a good overview that I should have put in my original post:

    SWT on Wikipedia [wikipedia.org]

  • by evil_Tak ( 964978 ) on Thursday May 11, 2006 @03:10PM (#15311175)
    I have no problems with SWT-using apps like Eclipse and Azureus on GNU/Linux for either x86 or x86-64.
  • by curunir ( 98273 ) * on Thursday May 11, 2006 @06:11PM (#15313172) Homepage Journal
    One thing that seems to get glossed over in the "SWT is optimized for Windows" argument is that SWT *is* open source.

    IBM put a whole lot of time and energy into optimizing for Windows because it allows them to sell WebSphere studio for Windows. Optimizing for other platforms isn't cost effective, so they didn't do it. But what they did do is release the source, so someone with expertise on other platforms can pick up the ball and run with it and, when it passes all the tests, be merged back into the main eclipse source tree. The extensive tests are key in facilitating this process.

    If SWT were to be included in the JRE, I think you'd see at least Apple (who distribute their own JRE anyways) spend sigificant effort in making SWT performant on OS X. I don't think its unreasonable to think that such an effort wouldn't be organized for Linux as well. But as long as SWT is just "that Eclipse thing", these efforts won't happen.

    My one quibble with what the GP said is the "SWT is what Swing should have been" comment. SWT wasn't designed to be what Swing tries to be. It was designed to be much less OS abstracted. Much of the ugliness of the underlying OS filters through into SWT (widgets requiring parent composites, requiring developers to call dispose, requiring developers to update widgets via syncExec and asyncExec). JFace, on the other hand, is much more comparable to Swing. It burries much of the ugliness of SWT and presents a much cleaner interface to the developer. It's a shame that the people at Eclipse chose to create only an SWT download and an RCP download and not a JFace + SWT download.
  • by JoshDanziger ( 878933 ) on Thursday May 11, 2006 @06:44PM (#15313405)

    I'm a few years out of programming languages, but it sounds to me that you're butchering the use of dynamic vs. static languages. To my knowledge, dynamic/static is used in programming languages to refer to two properties: scope and typing. This is, of course, not to be confused with compiled vs. interpreted languages.

    So, why are dynamically typed languages popular? They're popular because they know how to do things implicitly. We get these niceties like the ability to use numbers as strings without calling atoi, or use input strings to do math. Basically, dynamic typing lets you code faster because you don't have to constantly worry about casting things to the appropriate type.

    Dynamically scoped languages are, in my opinion, rarely useful. The only valid use that I have ever had is to temporarily override a global parameter. For example, in Perl I might call local $/ = undef ; to temporarily enable 'slurp mode' in Perl. However, this is pure laziness, I could just as easily store $/ in a temporary variable and restore it when I'm through. Finally, even though languages like Perl are dynamically scoped, a sane programmer would never take advantage of this feature. How can you debug a value when you aren't sure where it came from?

    Finally, Java/C are not free from runtime type detection errors. Java will happily throw a ClassCastException if you try to cast an Object to something that it is not. C makes it even worse and will dutifully make the cast and entirely muck up your data structures when you try to use the improperly cast object.

    In my opinion, people don't use languages like Ruby/Perl/Python because they are superior architectures. They use them because they are easier to learn.

Always draw your curves, then plot your reading.

Working...