[Java-gnome-developer] (no subject)
Brought to you by:
afcowie
From: Benjamin J. <bp...@gm...> - 2004-11-06 19:38:28
|
--- OOPS! Accidentaly forgot to send this mail to the list --- Sent useless stuff that contained only Jerry's quoted mail --- Sorry... :-) > Yes. Java web start is awesome. Making a similar thing possible with > Gnome/GTK would be awesome. However, I have gone down this path before. > > GTK/Gnome are native libs. This means, for the JWS program to run, it > cannot do so in a sandbox. The user gets an ugly message telling them > not to do it. Right! This might be the biggest problem when trying to deploy java-gnome applications using some kind of web start system. The 'standard' user will just click away the warning message ("Uh... what's that s'posed 'ter be??! ") and that's it. With full access to the system I can't imagine what an application considered to do harmful things might do... :-( Anyway... such things can be thought trough. When deploying a standard Java/Swing application same things can happen: the application wants to have full access to network, harddisk and refrigiator, the user simply clicks 'OK' and is bored by the missing/bad certificate -- and that's it. Besides,... it might be wrong to try to immitate Java Web Start 100%, but it might be a good start to show off some of java-gnome's features. It would be awesome if other deployment methods beside JNLP could be 'plugged in' to extend the whole thing... > GTK/Gnome do not use Java class loader to load their resouses: such as > icons, themes, .gtkrc files, and the like. There isn't a good way to do > this with JWS. Gtk/Gnome would have to be able to load their resources > out of a Classloader. Perhaps adding a callback to GTK's file operations > that lets you plug in arbitrary ways to retrieve a byte[] or something. But you CAN use the java class loader to load resources for use with java-gnome... I used the following code in my 1st java-gnome app: new LibGlade( getClass().getResource("somefile.glade").getFile(), this ); packed it all nicely together in a JAR file and launched the app using SableVM. Works! Didn't try that with icons, sounds, etc though... ... you're right. I nearly don't know anything about GTK/GNOME. GNOME is my desktop of choice and now that I've found out that there is a java-gnome project I might be going slightly too fast. I'll try to do more RTFMs... :-) > > Both of the above cases could more properly be solved in the same way > Swing/AWTs are. When a Swing program is downloaded from JWS, it does not > download the entirety of the Swing and AWT libraries: they are located > on the local machine. AWT uses JNI (or something) to interface with the > native machine to do it's graphic rendering... and JWS doesn't give you > a warning about this (just like an applet). Basically somebody has > configured a security manager of some sort to trust Swing/AWT. So, > Java-Gnome is installed locally and given permission to do what it > needs. Obviously this makes one click deployment not quite work... > except that your Linux distribution SHOULD distribute Java-Gnome by > default!!! Yes. That should definately be the goal. Java-Gnome must be installed to use GNOME Web Start!!! If there is another net launching protocol similar to JNLP which might be suited better to deploy java-gnome applications, let me know. See.... I just had an idea, I'm not quite sure if it might work out.... but I like the idea itself. Maybe nobody is interrested in my Java-Gnome deployment system. That's what I wanted to find out first. Is there a need for GNOME Web Start? Have fun... Benjamin (this time from a different e-mail address) -- NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis! |