Re: [Jmol-users] jmol doesn't work with openjdk in Debian
On Tue, Nov 18, 2008 at 10:54 PM, Angel Herráez <[EMAIL PROTECTED]> wrote: > Hi Ondrej > > The applets at > http://jmol.sourceforge.net/scripting/ > are simpler than those in the 'atoms' demo page (they are inserted directly, > without using > Jmol.js and they also have the mayscript tag). > So you can use that page for tests and for reporting back to the openjdk > people. > > However, they may not be cross-browser-optimized as Jmol.js applets are > (basically, the > use of applet, object or embed tags for inserting the applet; I'm not sure if > that would make a > difference in your case). Wow, all those applets work perfectly in my browser. So the problem seems related to some communication between the applet and javascript, right? I haven't yet tried a different browser. So I'll report using the jmol demo pages as an example that doesn't work. But if they say that it is a problem in your applets, I'll get stuck again. :) Ondrej - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] jmol doesn't work with openjdk in Debian
On Tue, Nov 18, 2008 at 1:54 PM, Robert Hanson <[EMAIL PROTECTED]> wrote: > 1) are you sure you have all the JmolApplet0_.jar files in place? Well, I was just accessing this page: http://jmol.sourceforge.net/demo/atoms/ do I need to install some files as well? I thought it will work out of the box. > > 2) put JmolApplet.jar in the directory, then try using > > jmolInitialize(".","JmolApplet.jar") > > This will test whether the Java system can load from multiple Jar files. Ok, I'll study how to run jmol myself and report back. So far I was only accessing the demo pages at jmol.sf.net. Will it make any difference though? On Tue, Nov 18, 2008 at 1:59 PM, Egon Willighagen <[EMAIL PROTECTED]> wrote: > Bob, > > On Tue, Nov 18, 2008 at 1:19 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: >> Ok, so the maintainer of the openjdk package replied here: >> >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505726 >> >> that: >> >> " >> the applet is lacking a mayscript attribute. >> " >> >> (referencing to the apple ColorBlockApplet demo above) and closed the bug. > > from > > http://www.javasonics.com/support/check_liveconnect.php > > I understand that mayscript="true" must be included in the > tag in order to get this working... I tried that page, and unfortunately, the java -> javascript communication is not working for me (I tried all 4 options). Does this mean an error in openjdk in Debian? If so, do you have any idea where exactly the problem is? If not, I'll report it again as a bug in the openjdk package -- but I am really new to these things, so the bug may be somewhere else. Ondrej - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] jmol doesn't work with openjdk in Debian
On Tue, Nov 18, 2008 at 1:19 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > On Fri, Nov 14, 2008 at 7:17 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: >> On Fri, Nov 14, 2008 at 6:17 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: >>> On Fri, Nov 14, 2008 at 5:38 PM, Robert Hanson <[EMAIL PROTECTED]> wrote: >>>> Ondrej >>>> >>>> It's a LiveConnect problem. You should be seeing something -- a black >>>> window, maybe with the Jmol logo in the bottom right corner. The popup menu >>> >>> I see a gray window. >>> >>>> might work. You might be able to pull up a console. >>> >>> Unfortunately, the popup menu doesn't work. >>> >>>> >>>> What won't be working is any JavaScript connectivity. After loading >>>> http://www.java.com/en/download/help/testvm.xml, try this on the URL line: >>>> >>>> javascript:alert(document.applets[0].getAppletInfo()) >>>> >>>> >>>> If you get an alert with a copyright notice, then we can talk about why >>>> Jmol >>>> might not be working; if you don't, it's not a Jmol problem -- complain to >>>> openjdk-6 folks! >>> >>> I got: >>> >>> TypeError: document.applets[0].getAppletInfo is not a function >>> >>> however, with this: >>> >>> alert(document.applets[0]) >>> >>> I got: >>> >>> [object HTMLAppletElement] >>> >>> So it seems that javascript/java is not working properly in iceweasel. >>> >>> Thanks for the tip. For reference, here is a test: >>> >>> http://developer.apple.com/internet/safari/samples/ColorBlockApplet.html >>> >>> and neither way (e.g. js->applet, applet->js) works for me. It seems >>> like a known problem though: >>> >>> https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762 >> >> Ok, so one needs to install openjdk packages from Debian experimental: >> >> $ wajig install -t experimental openjdk-6-jre >> $ wajig install icedtea6-plugin >> >> Then install the plugin to iceweasel by hand: >> >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505726 >> >> now the js->applet communication works, e.g. clicking the buttons >> change the applet color here: >> >> http://developer.apple.com/internet/safari/samples/ColorBlockApplet.html >> >> unfortunately, the apple->js communication doesn't work (does jmol need it?). >> Now jmol applets show the loading page and the number of secons >> increases in the lower right corner. But it never loads in full. It >> seems like an openjdk problem, which still needs to be fixed. > > Ok, so the maintainer of the openjdk package replied here: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505726 > > that: > > " > the applet is lacking a mayscript attribute. > " > > (referencing to the apple ColorBlockApplet demo above) and closed the bug. > > > Robert --- do you still think this is a bug in openjdk? As I described > above, jmol now loads and runs but it stays in the "load" mode > forever. The seconds in the bottom part of the applet are increasing > (so the applet itself works and executes), but nothing happens. > > How would you suggest me to investigate further? I realized that if I start iceweasel from the command line, I get some useful reports. As you can see below, jmol is raising some exception: $ iceweasel ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ICEDTEAPLUGIN_DEBUG = (null) Initializing JVM... NOT IMPLEMENTED: virtual nsresult IcedTeaPluginInstance::Start() Jar string: JmolApplet0.jar jars length: 1 JNLPRuntime already initialized urlImage=jar:file:/tmp/cache/http/jmol.sourceforge.net/jmol/JmolApplet0.jar!/jmol75x29x8.gif Jmol applet jmolApplet0__0245810961582291__ initializing language=en_US AppletRegistry.checkIn(jmolApplet0__0245810961582291__) error preloading org.jmol.popup.JmolPopup: org.jmol.popup.JmolPopup net.sourceforge.jnlp.runtime.JNLPClassLoader - 700 - loadClassExt net.sourceforge.jnlp.runtime.JNLPClassLoader - 657 - loadClass java.lang.ClassLoader - 336 - loadClassInternal java.lang.Class - -2 - forName0 java.lang.Class - 186 - forName org.jmol.appletwrapper.ClassP
Re: [Jmol-users] jmol doesn't work with openjdk in Debian
On Fri, Nov 14, 2008 at 7:17 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > On Fri, Nov 14, 2008 at 6:17 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: >> On Fri, Nov 14, 2008 at 5:38 PM, Robert Hanson <[EMAIL PROTECTED]> wrote: >>> Ondrej >>> >>> It's a LiveConnect problem. You should be seeing something -- a black >>> window, maybe with the Jmol logo in the bottom right corner. The popup menu >> >> I see a gray window. >> >>> might work. You might be able to pull up a console. >> >> Unfortunately, the popup menu doesn't work. >> >>> >>> What won't be working is any JavaScript connectivity. After loading >>> http://www.java.com/en/download/help/testvm.xml, try this on the URL line: >>> >>> javascript:alert(document.applets[0].getAppletInfo()) >>> >>> >>> If you get an alert with a copyright notice, then we can talk about why Jmol >>> might not be working; if you don't, it's not a Jmol problem -- complain to >>> openjdk-6 folks! >> >> I got: >> >> TypeError: document.applets[0].getAppletInfo is not a function >> >> however, with this: >> >> alert(document.applets[0]) >> >> I got: >> >> [object HTMLAppletElement] >> >> So it seems that javascript/java is not working properly in iceweasel. >> >> Thanks for the tip. For reference, here is a test: >> >> http://developer.apple.com/internet/safari/samples/ColorBlockApplet.html >> >> and neither way (e.g. js->applet, applet->js) works for me. It seems >> like a known problem though: >> >> https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762 > > Ok, so one needs to install openjdk packages from Debian experimental: > > $ wajig install -t experimental openjdk-6-jre > $ wajig install icedtea6-plugin > > Then install the plugin to iceweasel by hand: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505726 > > now the js->applet communication works, e.g. clicking the buttons > change the applet color here: > > http://developer.apple.com/internet/safari/samples/ColorBlockApplet.html > > unfortunately, the apple->js communication doesn't work (does jmol need it?). > Now jmol applets show the loading page and the number of secons > increases in the lower right corner. But it never loads in full. It > seems like an openjdk problem, which still needs to be fixed. Ok, so the maintainer of the openjdk package replied here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505726 that: " the applet is lacking a mayscript attribute. " (referencing to the apple ColorBlockApplet demo above) and closed the bug. Robert --- do you still think this is a bug in openjdk? As I described above, jmol now loads and runs but it stays in the "load" mode forever. The seconds in the bottom part of the applet are increasing (so the applet itself works and executes), but nothing happens. How would you suggest me to investigate further? Thanks, Ondrej - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] jmol doesn't work with openjdk in Debian
On Fri, Nov 14, 2008 at 6:17 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > On Fri, Nov 14, 2008 at 5:38 PM, Robert Hanson <[EMAIL PROTECTED]> wrote: >> Ondrej >> >> It's a LiveConnect problem. You should be seeing something -- a black >> window, maybe with the Jmol logo in the bottom right corner. The popup menu > > I see a gray window. > >> might work. You might be able to pull up a console. > > Unfortunately, the popup menu doesn't work. > >> >> What won't be working is any JavaScript connectivity. After loading >> http://www.java.com/en/download/help/testvm.xml, try this on the URL line: >> >> javascript:alert(document.applets[0].getAppletInfo()) >> >> >> If you get an alert with a copyright notice, then we can talk about why Jmol >> might not be working; if you don't, it's not a Jmol problem -- complain to >> openjdk-6 folks! > > I got: > > TypeError: document.applets[0].getAppletInfo is not a function > > however, with this: > > alert(document.applets[0]) > > I got: > > [object HTMLAppletElement] > > So it seems that javascript/java is not working properly in iceweasel. > > Thanks for the tip. For reference, here is a test: > > http://developer.apple.com/internet/safari/samples/ColorBlockApplet.html > > and neither way (e.g. js->applet, applet->js) works for me. It seems > like a known problem though: > > https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762 Ok, so one needs to install openjdk packages from Debian experimental: $ wajig install -t experimental openjdk-6-jre $ wajig install icedtea6-plugin Then install the plugin to iceweasel by hand: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505726 now the js->applet communication works, e.g. clicking the buttons change the applet color here: http://developer.apple.com/internet/safari/samples/ColorBlockApplet.html unfortunately, the apple->js communication doesn't work (does jmol need it?). Now jmol applets show the loading page and the number of secons increases in the lower right corner. But it never loads in full. It seems like an openjdk problem, which still needs to be fixed. Ondrej - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] jmol doesn't work with openjdk in Debian
On Fri, Nov 14, 2008 at 5:38 PM, Robert Hanson <[EMAIL PROTECTED]> wrote: > Ondrej > > It's a LiveConnect problem. You should be seeing something -- a black > window, maybe with the Jmol logo in the bottom right corner. The popup menu I see a gray window. > might work. You might be able to pull up a console. Unfortunately, the popup menu doesn't work. > > What won't be working is any JavaScript connectivity. After loading > http://www.java.com/en/download/help/testvm.xml, try this on the URL line: > > javascript:alert(document.applets[0].getAppletInfo()) > > > If you get an alert with a copyright notice, then we can talk about why Jmol > might not be working; if you don't, it's not a Jmol problem -- complain to > openjdk-6 folks! I got: TypeError: document.applets[0].getAppletInfo is not a function however, with this: alert(document.applets[0]) I got: [object HTMLAppletElement] So it seems that javascript/java is not working properly in iceweasel. Thanks for the tip. For reference, here is a test: http://developer.apple.com/internet/safari/samples/ColorBlockApplet.html and neither way (e.g. js->applet, applet->js) works for me. It seems like a known problem though: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/282762 Ondrej - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
[Jmol-users] jmol doesn't work with openjdk in Debian
Hi, I have the openjdk-6 which is in Debian main: http://packages.debian.org/sid/openjdk-6-jre and most (all) java applets seems to work, including for example this test: http://www.java.com/en/download/help/testvm.xml however, jmol doesn't. This page says: http://jmol.sourceforge.net/browsercheck/ Operating System Linux Web browser mozilla Browser version 1.9.0.3 navigator.userAgent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092816 Iceweasel/3.0.3 (Debian-3.0.3-3) has getElementById()true navigator.javaEnabled() false So I went into my preferences and I have "Java enabled" checked. So I unchecked, restarted iceweasel, checked again, restarted iceweasel and now the browser check says: navigator.javaEnabled() true however, no jmol applet works (it shows a blank canvas). So I went into Tools -> Error Console and there I found: applet.script is not a founction http://jmol.sourceforge.net/jmol/Jmol.js and when clicking on it, it showed the line 389: if (applet) applet.script(script); so it seems like a bug in Jmol.js. I am new to javascript --- how can I debug it? Apparently applet is something nonzero, but it doesn't have the ".script()" method. I searched the archives of this list and I saw similar problems already, but no conclusion. Thanks for any help, Ondrej - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users