Bob, Oh, I guess I was confused because it appears as jmolappletproto.jar in your directory, but as as a zip folder on my computer. Seems as though I still have something wrong... I have the jmolappletproto.jar and jmol-new in the same directory as the following simple html file.
<html> <head> <script language="javascript" src="Jmol-new.js"></script> </head> <body> <script language="javascript"> jmolApplet(500) </script> </body> </html> But, when I open the file, I get an "jmolapplet0 notinitied" message, and then a "downloading jmolapplet" message. I'm assuming that it doesn'tmatter that I have the older jmol files in the same place. Steve >Message: 7 >Date: Tue, 06 Jun 2006 12:59:03 -0500 >From: Bob Hanson <[EMAIL PROTECTED]> >Subject: Re: [Jmol-users] installing jmolappletproto.jar >To: [email protected] >Message-ID: <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >Steve, a Jar file is a zip file, so that would be correct. Just save it >to your hard drive. Bear with us; we're just not creating full ZIP files >yet. > >To use the prototype, you have two options: > >1) Quick download; more work: > > a) download JmolAppletProto.jar and Jmol-new.js > b) change your project files to point to Jmol-new.js instead of Jmol.js > c) comment out your jmolInitialize() statement if it currently reads: > > jmolInitialize(".") > > or change it to read > > jmolInitialize("<whatever directory>", "JmolAppletProto.jar") > > This is what I do, because I can always change those two lines back in >order > to compare results. > >or > >2) Slower download; Make no changes in your HTML files: > > a) save copies of the 10.2 jar and js files somewhere > b) download JmolApplet0-6.jar(s) individually along with Jmol-new.js > c) replace the 10.2 jars and Jmol.js with those files > >Bob Hanson > > > >Steven R. Spilatro wrote: > > >I'm a rookie to jmol so your patience is appreciated. I want to take > >advantage of new functions I see described for jmol-new, but have > >been unsuccessful getting it set up. I'm stumped at step-one: > >down-loading jmolappletproto.jar > >from http://www.stolaf.edu/people/hansonr/jmol/test/proto/ gives me > >a zip file, not the jar. ; what am I doing wrong? > >Steve > > > >Dr. Steven R. Spilatro > >Chair, Department of Biology > >Marietta College > > > > > > > > > >_______________________________________________ > >Jmol-users mailing list > >[email protected] > >https://lists.sourceforge.net/lists/listinfo/jmol-users > > > > > > > > >------------------------------ > >Message: 8 >Date: Tue, 06 Jun 2006 20:02:20 +0200 >From: "Angel Herraez" <[EMAIL PROTECTED]> >Subject: Re: [Jmol-users] 10.x bugs in firefox - applet.script is not > afunction >To: [email protected] >Message-ID: <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=US-ASCII > >Hi Michael > >The situation may be the same as one quite familiar to me, though >still not narrowed so I can define it in written form. So, I cannot >be specific, but will give you some clues: >The "applet.script is not a function" error is little informative; I >have had it when there are errors in javascript, when the applet >hasn't had the time to load, when I mix javascript and Jmol scripts >and they are not in synch (remember they run in parallel, not in >order: if you try to give Jmol instructions by means of javascript >and it has not yet processed its own, you get unpredictable results >and hang-ups)... >So, my advice: check carefully your html and javascript code; >separate/simplify the instructions to see where the blocking is. >Sometimes, just inserting an alert() command close to the site of the >problem solves it, removing the alert brings it back: that is a clear >hint of one of those "not in synch" situations I was trying so poorly >to define. > > > I have observed, that when I browse jmol web from localhost > > (jmolInitialize secure flag set to 1), the buttons work, but when > > browsed through web server, it does not. > >This might be due to slower loading of the applet when in web server >(mentioned above), making the error to surface. > >(I regularly use Firefox on Windows; some problems also apply to >Microsoft IE but Ff may have higher incidence) > >I gather Bob Hanson has worked out a way to delay javascript until >Jmol is finished (in his prototype). This will be VERY useful, but I >haven't tested it yet since I am trying to finish materials that must >go with an official release of Jmol. > >Hope it helps, > > > > >------------------------------ > >Message: 9 >Date: Tue, 06 Jun 2006 20:42:59 +0200 >From: Nicolas Vervelle <[EMAIL PROTECTED]> >Subject: Re: [Jmol-users] NullPointerException when running Jmol.jar >To: [email protected] >Message-ID: <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >Hi, > >Do you remember with which version you successully implemented it before ? >A lot of things have changed since version 10.00. > >Do you have a development environment set up with Eclipse ? >If not, could you install one and make a few tests ? >( http://wiki.jmol.org/index.php/Eclipse ) > >Currently the line 98 of JmolResourceHandler is: > URL imageUrl = >this.getClass().getClassLoader().getResource(imageName); > >Could you replace it by: > Class tmpClass = this.getClass(); > System.out.println("tmpClass: " + (tmpClass != null ? >tmpClass.getName() : "null")); > ClassLoader tmpClassLoader = tmpClass.getClassLoader(); > System.out.println("tmpClassLoader: " + (tmpClassLoader != null ? >tmpClassLoader.getClass().getName() : null)); > URL imageUrl = tmpClassLoader.getResource(imageName); > >and tell us which line is throwing an exception and what is the output ? > >I suspect the problem is with the ClassLoader since you are using your >own ClassLoader. > >Nico > >Joanna Sharman wrote: > > Hello, > > > > I want to run Jmol.jar from within another java application. I've > > successfully implemented this before, but suddenly I'm getting a > > NullPointerException in the class JmolResourceHandler, specifically in > > the getIcon method. I didn't change anything in my code so I don't > > know why this error has suddenly appeared. I don't even know if the > > cause lies within Jmol or with the Eclipse version I'm using, but if > > anyone has seen this before perhaps they can help me. If I just try > > and open Jmol.jar by clicking on the icon it opens normally. > > > > I'm using a couple of classes I borrowed as examples from the sun java > > tutorial to run Jmol.jar by passing a URL pointing to the jar file to > > the class JarRunner. I've copied the two classes below the stack trace > > for the error. > > > > Thanks in advance for any help! > > Joanna > > > > > > _______________________________________________ > > Jmol-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/jmol-users > > > > > > > > > > > > >------------------------------ > > > >------------------------------ > >_______________________________________________ >Jmol-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/jmol-users > > >End of Jmol-users Digest, Vol 1, Issue 1128 >******************************************* Dr. Steven R. Spilatro Chair, Department of Biology Marietta College _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

