Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Sun Opens JDesktop Integration Components

Posted by simoniker on Mon Jun 07, 2004 03:56 PM
from the bright-disposition dept.
Jahf writes "Sun has released the JDIC / JDesktop Integration Components API via the LGPL. The idea is to create a Java API that allows Java applications to better integrate with a modern desktop. It allows apps to embed a web browser component, access/launch desktop applications and associate filetypes. Documentation and demos are available and there is an incubator project (SaverBeans Screensaver) under way. Sun has been a proponent of developing desktop apps in Java, including a number of open source Java apps in the Java Desktop System and developing new ones for it as well (Java System Updater), and this appears to be a step towards making that goal a bit easier. I'm sure that every release of Java Desktop System (disclaimer: yes, I work on it) will continue to get the 'it has nothing to do with Java!' trolling since Sun is using GNOME as a desktop foundation (imagine what people would say if Sun created a 3rd environment in Java!) But those willing to step back and look at all facets (JDIC, Java Desktop System, Looking Glass previews, etc), hopefully others will see that Sun is getting more serious about making Java a platform for desktop developers."
+ -
story
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.
  • LGPL! (Score:5, Interesting)

    by HiThere (15173) * <charleshixsn&earthlink,net> on Monday June 07 2004, @03:58PM (#9359901)
    That's a much better license than I was expecting. Of course, I don't know just what is being covered. It's important to know that before giving Sun too much credit. (Still, they haven't been slow about being viscious in public, so no reason for them to be subtle now.)
    • by dekeji (784080) on Tuesday June 08 2004, @12:24AM (#9363120)
      Sun has simply figured out that it doesn't matter if they make some parts of the platform open source as long as they still control core portions of the platform.

      And Sun does: not only is there no complete open source implementation of crucial components like Swing (although the SWT-Swing effort may be changing that), even if people should manage to make a credible and complete open source Java 2 implementation, Sun's licensing restrictions on the Java specifications and their Java-related patents would probably let them shut down or control any such implementation should it become a threat to their dominance.
  • by happyfrogcow (708359) on Monday June 07 2004, @03:59PM (#9359908)
    a Sun spokesperson says, "The future of JDesktop Integration Components is uncertain. We have no plans to make JDesktop Integration Components open source in the near future."

  • That's good news (Score:4, Interesting)

    by gustgr (695173) <rondina.gmail@com> on Monday June 07 2004, @04:02PM (#9359937) Homepage
    This can help the GCJ [gnu.org] project to build their free CLASSPATH faster.

    Soon [I hope] this free Java compiler/interpreter will be ready to replace the "closed" Sun's Java.
    • Misinformed (Score:4, Informative)

      by vlad_petric (94134) on Monday June 07 2004, @04:23PM (#9360104) Homepage
      Classpath itself is "already there". Classpath is slowly being merged into libgcj.

      OTOH GCJ is far from replacing Sun's java (at least in terms of speed). To compile java properly you have to do some funky runtime optimizations (which sometimes even require un-optimizations!), something that the gcc infrastructure doesn't really allow. That's why you get considerably better running speeds with Sun's or IBM's JITs (although you do get better startup speeds with gcj)

      • Startup times are pretty good with java these days too. Running a hello world (which should consist of pretty much only startup) takes 0.150 seconds on 1.4.2 and 1.116 seconds on 1.5.

        This is on an Athlon XP2400+ machine running Fedora Core 2 (kernel 2.6.5).

        This is obviously a lot slower than a C program (no surprise there) but it's still fast enough to give you an "instantaneous feeling" when running an application.

  • by teutonic_leech (596265) on Monday June 07 2004, @04:04PM (#9359948)
    ... shouldn't they have done this 4 or 5 years ago? Why now? We could all run Java based browsers and applications if those guys would have put their thinking caps on half a decade ago. Just my personal opinion - as usual, I could be wrong ;-)
    • by Pieroxy (222434) on Monday June 07 2004, @04:07PM (#9359970) Homepage
      I agree completely. They had their perfect cross-platform platform back then. They could have done so much, back when there was no real competition in that area (read desktop apps, such as browser, office, etc...), that every move they make now just look odd at best.
    • by 0racle (667029) on Monday June 07 2004, @04:49PM (#9360355)
      Five years ago the main GUI for Java apps was the AWT, which just didn't sit well with a lot of serious developers. Swing was in its infancy, was dog slow at the best of times and didn't play well with threads. If they had tried to do this then, or anytime before Swing became a lot more usable, then it would have died before anyone noticed. They probably could have done it a little sooner, but its possible that because they now ship Gnome instead of CDE they're rethinking some of they ways the deploy a GUI desktop, or are making it easier to create apps with Java across all installations for desktop oriented tasks so that more programmers realize what can be done with Java.
      • Java is not necessarily slow. Badly coded Java can be, but Java itself tends to be quite fast. I know companies that are writing essential services with 5 9s reliability in Java because it's fast enough and a lot easier to maintain.

        Benchmarks here:
        http://www.idiom.com/~zilla/Computer/javaCb enchmar k.html
  • by Anonymous Coward

    I'm sure that every release of Java Desktop System (disclaimer: yes, I work on it) will continue to get the 'it has nothing to do with Java!' trolling since Sun is using GNOME as a desktop foundation (imagine what people would say if Sun created a 3rd environment in Java!)

    neverind the trolling you'll get because GNOME is being implented in .Net/Mono instead of Java.... :)

    That's right I say:
    JDS = GNOME = Mono = .NET on Linux

    • That's right I say:
      JDS = GNOME = Mono = .NET on Linux

      Almost:
      (JDS = GNOME) != (Mono = .net on multiple platforms)

      GNOME is written in C (C++?), Mono is an open implementation of .net that runs on multiple platforms (including GNOME, KDE, Solaris, Windows, etc, etc) One's a language, the other's a technology (virtual machine, languageS, etc)

      ...and, to be honest, JDS is like most distros: it's not just the Window Manager. But hey! Why let "facts" get in the way of a good troll!

  • (imagine what people would say if Sun created a 3rd environment in Java!)

    Man, that was uncalled for. My head is spinning with comments. Must not read Slashdot thread for other's jokes.

    Seriously folks, lets keep this on topic and confine these things to a single thread that is easily ignorable. Replying to this would be a good start.
  • by Anonymous Coward on Monday June 07 2004, @04:09PM (#9359983)
    Java -- liked it, thought it was the future, then it ran slow on the desktop so I stopped looking at it. I heard it's great on the server side, though. Then processors got faster and memory got cheaper so I thought hey, let's do Java on the desktop again!

    Enter the debate of AWT, Swing, JFC, and all these other widget libraries. I tried the free Forte for Java and JBuilder to make me cutesy GUIs. I compiled and ran it on a Win98 box, transferred it over to a Linux box, and it worked spiffy except for a few font complaints. I had issues creating a jar file, though, and eventually got sidetracked away from the language altogether.

    In the end, Java seems like an abusive friend -- I keep going back, and it keeps giving me pain. Haven't gotten around to running Eclipse and trying again. Not sure if it's safe to give this 'relationship' another shot.
    • by Pieroxy (222434) on Monday June 07 2004, @04:19PM (#9360073) Homepage
      I had issues creating a jar file

      You realize that this is like saying "I has issues creating a .o file with gcc", right? If you can't get a jar file, you didn't go very far in your investigations.

      Haven't gotten around to running Eclipse and trying again

      Last time I tried, it was really simple: Run the installer, double click on the .cmd (or .sh on unix I guess). If you can't get that working, then I guess Java is not for you.
      • Maybe his jar file was written to a file called "a.out"
        • Thus the cycle continues -- effort to learn Java depends on its success on the desktop. Success on the desktop depends on effort to learn Java
          Hmm, interesting. I don't actually think the effort to learn Java is that big. But of coure I already know it, so I am biaised...

          As for the jar file, I ended up creating one but wasn't able to launch it from the command line. Something about explicitly pointing to the main class or whatnot.
          So a jar file is nothing else but a zip of a bunch of .class files and a fe
          • Sounds like some fairly basic issues. Not hard to do a google search on. Of course, it should just be pinned on Java, right?

            Java is about as intuitive to learn as MSVC... while the core language is simple, making a nifty little GUI work is not. It's easy to make a "hello world" jar that runs from the command line, but making an actual graphical applet that runs that way is quite a bit different.

            -WS
        • Take a few min and read

          man java

          and

          man jar

          if you have the main-class set correctly in the manifest you can do:

          java -jar yourjar.jar

          if not then just do

          java -cp yourjar.jar org.my.Main

          where org.my.Main is the main class of your app.

          I'll go out on a limb here and suggest that any non-trivial platform you want to use is going to take some time to learn. The JSDK has a TON of docs that come with it. Put some effort into it and read them. Esply the part on the jar tool.
  • My impressions (Score:4, Interesting)

    by finkployd (12902) on Monday June 07 2004, @04:11PM (#9360006) Homepage
    Looking glass is way cool, I am itching and burning to get my hands on a copy of that (and perhaps some ointment).

    Java Desktop is gnome with a new theme. Seriously they didn't even do as good a job as Redhat with Bluecurve in pretending that it was anything more than that. I suppose the real benefit is the legitimacy that it lends Linux on the desktop to the PHBs of the world, but technically it appears to be nothing to get excited about.

    But the demos I've seen for looking glass....damn. It looks like Apple's Expose on steroids.

    Finkployd
    • by happyfrogcow (708359) on Monday June 07 2004, @04:28PM (#9360156)
      But the demos I've seen for looking glass....damn. It looks like Apple's Expose on steroids.

      yes it does.

      -Instead of a nice pretty background, you get a pinkish, zit-covered background.

      -Way more bulk than any prgram needs... quickly turns to bloat if you stop running it.

      -Violent mood swings lead to the termination of all the puny shell scripts.

      -To pass a performace test it will try to load foreign components, specifically, C code.

  • by jbr439 (214107) on Monday June 07 2004, @04:15PM (#9360036)
    Java's memory footprint is currently too large to allow numerous java programs of a moderate complexity (and size) to be running simultaneously on the desktop. Until Sun gets VM sharing going, we will not see Java attain a strong desktop presence. And, in the meantime, Microsoft will be cleaning Java's clock with .NET.

    I work in Java and would love to see Sun devote the effort required to make Java *truly* desktop ready. However, I fear that that is not a priority for Sun, and instead we'll see .NET/C# rule the desktop. Hope Sun proves me wrong.
    • by lokedhs (672255) on Monday June 07 2004, @04:23PM (#9360107)
      Java's memory footprint is currently too large to allow numerous java programs of a moderate complexity (and size) to be running simultaneously on the desktop. Until Sun gets VM sharing going, we will not see Java attain a strong desktop presence.
      I presume you mean something like this [sun.com]?
      • That's a step in the right direction, but it does not go far enough. As the blurb says, only 5 to 6 MB gets shared. I am running JDK 1.5 beta2 and to be honest, I haven't noticed much (if any) savings (this is on Linux 2.6.5, don't know about windows). I currenly have 3 Java progrmas running using 511MB, 288MB, and 276MB (the first one is eclipse) according to both gtop and ksysguard. They are easily the top 3 memory pigs of the 150 processes currently running on my desktop. It is possible that gtop and ksy
        • Is what you propose going to be in .NET. If so then I would want to avoid it at all cost. Just imagine if one of those classes has a bug, and it crashes the VM. Now Microsoft wouldn't develop any buggy classes would they?

          Sun or anyone for that matter has to be very very careful on how they do this. IYour example "Eclipes", isn't a good true world test. How much memory does visual studio take up? IDE's have always been hogs. On some systems Outlook takes over 300MB to load. Getting the initial VM lo
      • Actually I thought he was talking about something like this. [mac.com]

        The thing which was added in 1.5 improves startup time, but each JVM you run still takes the same amount of space, unless they say otherwise on a different web page. JShell, on the other hand, solves the memory issue. (I wonder why this couldn't be worked into a core feature.)

    • by GCruick (786273) on Monday June 07 2004, @04:39PM (#9360250)
      In our projects we have found that the .NET winforms foot print is minium 11mb, but often is at least 20-30mb. So please stop spreading FUD
    • by Decaff (42676) on Monday June 07 2004, @04:57PM (#9360425)
      Java's memory footprint is currently too large to allow numerous java programs of a moderate complexity (and size) to be running simultaneously on the desktop.

      By default the 1.4 JVM allows a default maximum (note 'maximum' of 64MB per application, but there is no reason why an app needs to use anything near that. The full Swing GUI demo (a pretty complex app with memory-hogging features) from Java 1.4 runs comfortably in 32MB.
      New machines are purchased with around 512MB of memory. That is enough to run more than 10 copies of this app.

      If you use something like SWT; a portable GUI library with native code bindings you can run Java apps GUI with memory requirements a lot smaller (Swing is a memory pig). You can run many more GUI apps. If you don't require a GUI, Java apps can require memory requirements of the order of single figures of megabytes, including the VM for each app.

      How many Java apps do you want to run - 10, 20, 30, 40?

      Microsoft will be cleaning Java's clock with .NET.

      Why? For now .NET is simply an alternative desktop development environment. Microsoft have a very low presence in the mid-range and high-end server market. Unless a full-featured (not just Mono) enterprise-level .Net is released to the Unix market .Net will have very little impact on the server side, which is where Java has a dominant and growing presence.

      If Java starts to grow on the desktop as well, .Net is in trouble.
  • by FerretFrottage (714136) on Monday June 07 2004, @04:17PM (#9360057)
    Dammit, I have coders block on my real project, but I can see how the RIAA may make use of java on the desktop. I hope everyone will now see the danger of java on the desktop and its integration

    try {
    toDownloadMusic();
    }
    catch (GrandmaAnd12YrdOldViolators you) {
    fineAndMakeYouAppearInCommerical();
    }
    finally {
    try {
    payMusicians();
    }
    catch(MoneyNotFoundException haha) { //ignore the musicians
    }
    }

    private void payMusicians() throws MoneyNotFoundException
    {
    if(true) {
    throw new MoneyNotFoundException("Sorry, get all of it because we like it that way");
    }
    }
  • Name mistake (Score:5, Insightful)

    by jared_hanson (514797) on Monday June 07 2004, @04:17PM (#9360059) Homepage Journal
    The biggest problem in naming it the Java Desktop System is that you are making your product lines vague and ambiguous. Didn't you learn anything from watching the whole Microsoft .NET hilarity as that ensued.

    Why not name it the Linux Desktop System, thereby keeping naming distinct between OS and development technologies? Sure, it's good to tie them together, but you need some focus and clarity among the things you are trying to push.

    Now, somewhat more contraverial, is you also need to recognize the contributions of the many people who's code you are selling. It would seem a responsible thing for a member of the community to acknowledge their participation by helping promote the name (Linux, GNOME, whatever). I'm not trying to flame Sun, because they've done some nice things with ATK and OO.o, etc. However, as a Linux supporter, why should I go with Sun over IBM or Red Hat when both of those put forth more effort to evangalize open source?
    • Not just Linux (Score:5, Informative)

      by _damnit_ (1143) on Monday June 07 2004, @04:52PM (#9360381) Journal
      Because it will not always be Linux underneath. Running the JDS just means you have a common set of apps, ui, libraries and java. It could soon be Solaris x86 underneath or a sparc version running on Sunrays (which I still think are cool).
  • For a company that claims it doesn't want ot see java splintered by open source Sun sure is trying to make things complicated. First they have awt, then swing, then IBM jumps in with SWT, ok fine IBM evolves the Java Desktop and it looks pretty good. See eclipse [slashdot.org] But now Sun releases another API for the desktop that, while different in purpose, is not compatible with SWT. Great. not to mention the fact that it uses GNOME (a.k.a. .NET-Just wait). How does this help make Java a more unified platform?

    A
    • You are wrong. This is just a library, it's not part of standard libs of the language. So this isn't fragmenting anything. And Sun can't prevent (why would want?) anyone to make their own libraries, as long as they don't change the standard base library, like SWT which works on Java, you choose to use or not. That may do a little fragmentation, but it does run over Java anyway. It's not like J++ which changed the language with propietary reserved words.

      I agree somewhat with the last part: what Sun should d
  • Java...write once...run ever...on Java Desktop ;-)
  • Startup time (Score:5, Insightful)

    by ecloud (3022) on Monday June 07 2004, @04:32PM (#9360184) Homepage Journal
    Now if they could make it so you don't have to start up a separate VM for every application...because it takes too much memory AND too much time.

    They've needed a process model for a long time. That's still the critical piece needed to make a "Java OS" a reality. (AFAIK it still is missing...)

    Of course there is the copout that the interpreter ends up in shared memory anyway. But what about loaded classes? Are they shared between apps? I think not.

    Of course, applications can be written to become threads in an existing VM rather than intended to start up on their own, but that generally isn't done. This way Sun can ignore security issues between apps within the sandbox by saying well, just start up a new sandbox for every application, and there is no way they can step on each other. Moore's law has had many cycles now since Java came out, and the cost of even one VM is still not negligible, let alone one per application.

    Then there is the fact that Swing applications always look so unique, so volatile and unreliable, due to the fact that they paint slower, and you can sometimes see unpainted gray areas, at least temporarily. They make a bad impression, like old cars going down the road perpetually in primer, the "restoration" incomplete for years on end, making you want to ask "when are you ever going to use real paint!" They should instead work on fleshing out AWT to include the missing widgets, like trees (just implement their own native versions on the few OS's whose GUI toolkits don't have them), and screw pluggable look-n-feel. That should be a toolkit feature for the whole OS, not just for Swing applications. This approach is largely responsible for Swing apps looking and feeling so crappy.
  • I'm going to follow an increasing trend on Slashdot these days and come right out and admit I haven't read TFA.

    I'm also going to follow an age-old trend of mankind and blame the victim. Really, Sun; with all of the incomprehensible noise that's been coming out of official and semi-official channels, who can blame me? The Kremlin during Brezhnev's dotage was more on-message than you these days. Clearly you were asking for it.

    But anyways, if this doesn't include a less-restrictive license on the JRE such that it could go into Fedora, Debian, free-as-in-beer SuSE and other non-commercial distros, who gives a fuck? I don't even mean GPL - even a patches-only Minix-style source license; hell, even just free binary redistribution without selling your firstborn to Scott McNealy would do it.

    Yes, yes, I know; those aren't enterprise Linux. But they are what enterprise Linux guys run at home.

    If Sun really wants Java to be the platform of the future, they've got to make it possible to install as part of a platform, rather than an afterthought added in after you've already got kernel, services, gui, and browser application running.
    • Can someone please explain something to me, as I feel I am being stupid.

      When some Linux developers are so keen and eager to download all kinds of software, do they complain so much about downloading a free Java development environment from Sun? Its free to download, free to use, and you can freely distribute the run-time with your apps.

      I remember when, years ago, Linux people did not like to have pre-installed systems, and preferred to have the freedom to set things up for themselves. Have things really
      • Java is currently a very good platform for server-side solutions.

        It is not currently an ideal platform for desktop-side solutions. There are a number of reasons for this. One of them, and the most easily remedied of them, is that the current licensing scheme places restrictions on the distribution of binary JRE's.

        It may be that Sun is content with the status quo; after all, there's more and safer money on the server. In which case greater ubiquity for the JRE would be of no concern to them.

        But: releas
        • I have to download and install things like Swing even if I don't want them.

          Oh come on. This is just silly. If I download GCC, I get huge amounts of things I don't want, like cross-compiling for ARM processors. Where is the option to disable these?

          Nothing else in my system works that way so I can't understand why Java does.

          There is a very simple and easy to understand reason why Java does this. Java is a standard set of libraries and functions. Java includes things like Swing because that is part
  • by SirPrize (590850) on Monday June 07 2004, @05:03PM (#9360482)
    I've been developing in Java for close to 7-8 years now, and am a great advocate of Java - for those tasks that fit it. I think Java on the server-side is a very powerful thing, but that it just wasn't ready for the desktop up to and including v1.4. Try running 10 copies of Notepad - and then try running 10 Notepad-equivalents in Java, and see the difference. Having said that, v1.5 bringing virtual machine sharing should have a big impact on this, but I have not yet had the opportunity to evaluate how much of a difference this makes on the footprint. I recently had to demo an old application that we developed back in '98 for Java 1.1/1.2, on both Windows and Linux using Sun's 1.4 virtual machine. I was appalled to see that the application, which had very good performance on Windows, was unfortunately having quite dramatic performance issues when run on Linux (Tests were done on a dual-boot machine). Java on the desktop - yes, great. But up until 1.5, it wasn't the time. Maybe things will change now.
    • Have you used the latest versions? 1.4.2 or even 1.5? In fact, Swing feels faster than GTK on my current machine. I have not made any benchmarks, but it's just the feeling I get. In any case, to me that is proof enough that Swing has finally become "fast enough".
    • Strange considering that there are sooooo many Java server applications out there and more being written every day. Weblogic and Websphere aren't 'developer desk'-names for nothing. Java is far more suited to the server than it is on the desktop at this time.

      Java is getting much better on the desktop (FINALLY), but it is most definitely at its best on the server.
    • by Decaff (42676) on Monday June 07 2004, @05:17PM (#9360599)
      Had Java used native widgets, it might fit in better.

      Java can use native widgets easily: IBM's SWT toolkit does just that.

      Had Java used widgets that didn't look like a throwback to Motif it might have been slightly better.

      Then don't use these widgets. Use any of hundreds of Swing look and feels, or use versions of SWT that use GTK, or Windows, or Aqua.

      Instead Java UIs tend to be a usability nightmare.

      There is nothing intrinsic about a Java UI that is a usability problem. With any Java GUI you can design your own buttons, add your own accelerators, menus, colours, tooltips. I think you are confusing the bad design of some particular applications with what is potentially possible using a GUI toolkit. Its like saying that GTK is bad in general because you have seen some badly designed GTK apps.

      Even Eclipse, which is far and away the best app I've seen in Java has nowhere near the visual polish as its GNOME, KDE, Aqua, or Win32 equivalents.

      This does not make sense: Eclipse uses GTK, aqua and Win32. It uses those native widgets! Eclipse is a native GUI program.
    • I took an interest in Java for desktop work a few years ago, but quickly realized that Java on the desktop is even worse than Java applets were. (And at the time they were both incredibly atrocious.)

      So we already know where this is coming from. Someone who saw how bad it was in the past and hasn't kept up with the improvements: "Perl was pretty crap in version 1.0, therefore Perl still sucks today."

      Even with the increases in processor power, storage, and memory, Java is still atrocious, even compared

    • How long before we start seeing Java worms? It's only a matter of time. How will we blame Microsoft for them? They'll be cross platform worms.

      Nonsensical FUD.

      Java has security manager features that have been tested and refined over a decade. Java was designed from the core to protect against such problems - every memory access and every class loaded is validated.

      The only redeeming feature is that with the performance that Java provides, propogation of such worms will likely be a bit slower than the us