Sun Opens JDesktop Integration Components
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."
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.)
I think we've pushed this "anyone can grow up to be president" thing too far.
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."
This can help the GCJ 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.
... 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 ;-)
neverind the trolling you'll get because GNOME is being implented in
That's right I say:
JDS = GNOME = Mono =
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.
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
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.
.NET/C# rule the desktop. Hope Sun proves me wrong.
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
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
//ignore the musicians
try {
toDownloadMusic();
}
catch (GrandmaAnd12YrdOldViolators you) {
fineAndMakeYouAppearInCommerical();
}
finally {
try {
payMusicians();
}
catch(MoneyNotFoundException haha) {
}
}
private void payMusicians() throws MoneyNotFoundException
{
if(true) {
throw new MoneyNotFoundException("Sorry, get all of it because we like it that way");
}
}
"Look Lois, the two symbols of the Republican Party: an elephant, and a fat white guy who is threatened by change."
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?
-- Fighting mediocrity one bad post at a time.
OpenOffice.org
deep down, Sun loves us
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)
The Raven
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 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?
At first I was an oponnent of OSS Java, but now I'm not so sure. I am thinking anything is better than Java in the hands of Sun. Will someone please give Java to Apple.
I tried for 5 years to come up with a clever sig...only to realize that I am not clever.
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.
...and netbeans, though the license was the Sun Public License (like the Mozilla license), rather than the GPL.
...though I'm more an eclipse kinda guy, myself.
This is where the serious fun begins.
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
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.
Google confirms: Ruby is the world's most beloved programm
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).
_damnit_
It's my job to freeze you. -- Logan's Run
Heck, you can even compile the whole thing natively.
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.
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.
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 usual Windows type.
More FUD based on no evidence. Java has not been slow for years.
Very good question.
Launching an executable from Java requires either access to a native library, or the Runtime.exec() method. By default, web applets can't do either, so they probably couldn't use this functionality at all. (Which is how it should be.) But I can't verify this without looking at the internal workings of the library.
Which brings me to my question: Where's the source code?? The download page only shows binary packages. Did I miss something?
I am quite happy to see so many innovation lately in the market in order to make Java to be more desktop friendy - I am a Eclipse fan and I think Sun is trying to dampen down the momentum being built up in the Eclipse RCP (Rich Client Platform http://dev.eclipse.org/viewcvs/index.cgi/platform- ui-home/rcp-proposal/rich_client_platform_faciliti es.html?rev=HEAD) camp.
Anyway I am not particularly worry about splitting the community - the best will wins in the long run - look at GNOME and KDE - there has been so much innovation coming out of them. As long as the source is there, it will all be good!
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 got so bad that Linux developers insist on having everything pre-installed?
Is there some major lack of internet connections and/or CD-writers for 'enterprise Linux guys', so that they can't download the Java development kit at work and take it home? I mean, it only has to be done once....
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 to interpreted languages like Perl or Python.
We know this is a lie, because Java outbenched Python in benchmarks last year (it almost outbenched C, and would have if it weren't for the atrocious trigonometric performance.)
Even the simplest applications leave even powerful systems swapping like mad. Java consumes memory like the unholy offspring of Rush Limbaugh and Courtney Love would consume drugs at a pharmacy warehouse. Java brings in a large memory footprint that makes it completely unsuitable for many applications.
It brings about 8MB on top of the base application size. I don't know about you, but I have 512MB RAM in my system.
Of course by "it", I mean the Sun JVM. The Sun JVM is one of half a dozen that I know of, and some of those half a dozen are specifically written to conserve memory. Therefore bitching about Sun JVM's memory usage is akin to bitching about glibc's size wastage on a device where you should be using dietlibc.
And don't get me started about Swing and the other Java UI classes. The last thing we need is another UI toolkit. Had Java used native widgets, it might fit in better.
(... well it did in AWT, the problem was more that it didn't look modern enough...)
Had Java used widgets that didn't look like a throwback to Motif it might have been slightly better.
"The default GTK theme sucks, therefore GTK on the whole sucks."
Instead Java UIs tend to be a usability nightmare. 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.
... not that anyone has ever really seen an "equivalent" to Eclipse. I don't like Eclipse much myself (would use IDEA if I could afford it), but I've never seen any other application even competing in the same space. KDevelop looks like it might put up a fight, but it sure as hell doesn't at present, and is far from what I would call "polished."
In fact the main problem with Eclipse is that it's based on the shittiest GUI toolkit in existence: SWT. If it had been based on Swing like IDEA is, it would probably run smoother, look better, and generally be easier to use.
The fact is that if Java is to succeed in the desktop it needs to be made much faster,
... I'd love to see how it could get much faster, since it's already faster than C in many areas. Hey, perhaps C should get much faster too...
... again, property of the VM, not Java...
Yeah, because that really made GTK and Qt apps so consistent. The only desktop environment with a set of HIG that anyone gives a fuck about is OSX. Every other platform has them, and even Java has them, but the developers have to care! And of course, you can't force developers to care.
Unfortunately for Sun, I tend to think that the Java developers would be better suited to inventing a time machine and traveling back to 1996 when such improvements may have made a difference.
Well I would just go back with a copy of J2SE 1.5, to save all the waiting time for that. :-)
Java has a nice niche as an enterprise-level web applications language, but as a desktop programming language Java isn't neither well
Karma: It's all a bunch of tree-huggin' hippy crap!
Excuse me for saying that, sometimes C/C++ can be faster, and some times Java can be faster. It really depends on the application, and also the JDK. Sometimes C++ is faster and sometimes Java is faster, from my own benchmarks, and from others I have seen. There seems to be a lot of contradiction.
The problem is, that I suspect many others (like myself) collectively groan when they see the trademark Swing look-and-feel, and think - this program's gonna run like a dog.
Man watching 6 MSCE's around a sun box, looks alot like the opening scene's of 2001:space odyssey...
Well, then hopefully the new default Swing Look and Feel of 1.5 betas will still be around for 1.5 final, and the bad memories will go away.
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 of what other developer's Java programs expect to be on your machine.
What is the point of installing a system called 'Java' if you can't download java programs and run them?
"process model for a long time"
It's called isolates, and it's supposed to be in Java 1.6: http://www.bitser.net/isolate-interest/
There's a proof of concept in KaffeOS.
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: releasing JDIC or whatever it is under the LGPL suggests that they are indeed interested in propagating desktop-side Java. So it would seem logical to get as many Java VM's out there as easily as possible; which would mean slightly less restrictive language about binary distribution. (Notice that I am not speaking here of open source.)
But then again: tight integration of a Linux desktop with a Java VM is one of the selling points of the JDS, so from the perspective of that division, it would not make sense to make Java VM's more easily distributable.
In short, I don't have the faintest idea of where Sun is going. And I suspect that they don't either. You cannot have both ubiquity and control, but Sun's business model is premised upon having both.
Google confirms: Ruby is the world's most beloved programm
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.