Search |
||
Applet Dragging in LinuxPosted by cayhorstmann on September 15, 2008 at 8:17 AM PDT
Being a Linux user, I watched those applet dragging demos with envy when they only worked on Windows. When the release candidate of JDK 6 update 10 (now there is a product name only a mother could love...) came out, I was eager to try it out on Linux. Initially, I was held back by a factor entirely beyond my control, i.e. my cluelessness and unwillingness to read the docs. Thanks to Aaron Houston and Ken Russell for helping me out. Here are the steps:
»
Comments
Comments are listed in date ascending order (oldest first)
Submitted by mrmorris on Mon, 2008-09-15 08:56.
Let's set it straight that this is for the 32bit Linux users, not the unfortunate 64bit users.
Submitted by mbien on Mon, 2008-09-15 09:28.
@mrmorris
it works on 64bit linux too.... who says you have to run 64bit software on 64bit systems.
Submitted by mrmorris on Mon, 2008-09-15 11:14.
Am not interested in having multiple versions of Java, mixing 32bit and 64bit libraries cause a whole bunch of problems in browsers. And come one, 64bit CPU's have been mainstream since the year 2000 now.
Submitted by mbien on Tue, 2008-09-16 23:32.
>how are you supposed to know what goes on with the window manager of the person viewing your applet? ...At this point, the easiest way around the problem is to reconfigure Gnome.
You could also create a "dragable area" e.g the controls on top of your applet with UI telling the user that he can drag it (without additional shortcuts). The draggable applet sample on the early acces page does it this way. Shortcuts are only helpful for powerusers anyway ;)
Submitted by dug on Thu, 2008-10-30 08:03.
Anyone care to share how to get this to work in Ubuntu Intrepid or Hardy?
I've used update-alternatives and so forth, and the libnpjp2.so is installed to the right place (/usr/lib/firefox/plugins), and I remove the libjavaplugin.so, but still draggable applets and jnlp applets don't work.
In particularly I've been testing these applets:
https://scenegraph-demos.dev.java.net/demo-applets.html
Java 1.6 update 10 build 33 is installed. I also downloaded the latest from the sun site and used update-alternatives to point to the right .so and it didn't work. I also fixed the plugins in /usr/lib/mozilla/plugins too, no dice.
Submitted by dug on Thu, 2008-10-30 08:37.
Apparently "xulrunner-1.9-javaplugin.so" is the magic word, this makes the new applets work in firefox 3 in ubuntu intrepid:
sudo update-alternatives --install
/etc/alternatives/xulrunner-1.9-javaplugin.so
xulrunner-1.9-javaplugin.so
/usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 50
sudo update-alternatives --config xulrunner-1.9-javaplugin.so
and select the libnpjp2.so option
Submitted by telecomtom on Mon, 2008-11-10 10:58.
IANAD ("i am not a developer"), just a java fan who does some minor tweaking and drag-n-drop programming in netbeans, so take my testimony as suspect. anyway, after several weeks of failure i was able to get the draggable applet to work in ubuntu heron 8.04 with jdk6u10-b33 by following Cay's advice. the trick seems to be the libnpjp2.so plugin, by copying or symbolic link, in the $HOME/.mozilla/plugins directory. i'm not even sure i had to remove the old plugin (libjavaplugin_oji.so), as the draggable feature seems to work even after i put libjavaplugin_oji.so back in the plugins dir.
|
||
|
|