Sun Opens JDesktop Integration Components 200
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."
Re:Trolling? JDS = GNOME = Mono = .NET on Linux (Score:3, Informative)
That's right I say: .NET on Linux
JDS = GNOME = Mono =
Almost: .net on multiple platforms)
(JDS = GNOME) != (Mono =
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!
Sun's Take (Score:1, Informative)
Re:Sun actually GPL'ing something?!!? (Score:3, Informative)
deep down, Sun loves us
Misinformed (Score:4, Informative)
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)
Your wish shall be granted. :-) (Score:5, Informative)
Re:My impressions (Score:1, Informative)
No, it's not. JDS is a Linux distro. It has a number of EMS tools, the J2RE, various non-free plugins (eg, media players), several desktop utilities written in Java, etc.
People who think JDS is just "GNOME" or "SuSe" haven't used it. It's a unique distro. Definitely has that "we are serious about this in corporate environments" feel.
Re:Always The Outcast (Score:1, Informative)
Re: Buitiful desktop Java apps (Score:1, Informative)
Why? Am using Java on the desktop every day, it's fine. Check out some Java apps screenshots [javalobby.org].
Not just Linux (Score:5, Informative)
Re:Still an abusive friend (Score:3, Informative)
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.
wx4j: Native widgets via wxWidgets (Score:2, Informative)
Heck, you can even compile the whole thing natively [wx4j.org].
Re:Still an abusive friend (Score:3, Informative)
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
Re:Always The Outcast (Score:5, Informative)
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.
Re:Good step forward, but... (Score:2, Informative)
I could see (and agree with) the point about noticeablely slow app response times in 1998.
But now Joe Schmoe can get a 2.0+ GHz CPU with 256-512 MB of RAM with nearly 3 GB/s of usable memory bandwidth. Unless there are some really serious performance problems with a particular runtime environment, there is no reason for a Java app to run noticeably slower than an precompiled machine binary app in the language of your choice (barring serious number crunchers, of course... we're talking desktop apps here).
Processing capabilities have increased so much since the early 1990s that the overhead incurred by Java is negligible for newer systems. I think the biggest problem stemming from this initiative if it actually goes anywhere will be making sure that average users have a sufficiently up to date JRE.
Hell, my machine is slower than the latest and greatest speed demons, and I have no trouble with Java apps running slowly or consuming enough RAM/CPU/IO to make anything run slowly (except maybe when Azureus eats all of my bandwidth
Re:Java worms soon to come. (Score:3, Informative)
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.
Re:Startup time (Score:3, Informative)
http://java.sun.com/j2se/1.5.0/docs/guide/vm/class -data-sharing.html [sun.com]
Re:Good step forward, but... (Score:3, Informative)
Benchmarks here:
http://www.idiom.com/~zilla/Computer/javaC
Re:process model (Score:2, Informative)
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.
Re:Startup time (Score:2, Informative)
I'm using Java 1.5 for several months now, and besides the new language feature goodies it also has shared [sun.com] memory between applications.
Now I can't say how much better swing has gotten since 1.4 because a dont' remember how good it used to be