Henry,

I have successfully created a .app file under MacOS X using the jar
bundler.

No changes to Jmol were necessary, but I had to do quite a bit of
experimenting with the Jar bundler to finally get it to work.  Details
are below

It is a bit too large (4.3Mb) to send via email. So I have put it in a
subdirectory on the jmol web site so that you can test it out:
  http://jmol.sf.net/osx/

Take a look at it and let me know if it works as expected on your
machine(s).

I need to coordinate with Egon to discuss how we can automate this
packaging and include it with the regular releases.

Miguel

> a) I used to build an application from the  Jars  by dropping Jmol.jar
> into a program called  Jar Bundler. It would then offer a drop down
> menu to select what it detected as the  Main class.  Clicking on
> "create application" would then create what is called an application
> bundle. double clicking that as with any other application would run
> Jmol.    Starting around  Jmol 4 (or maybe 5)  Jar Bundler could not
> longer detect the  Main class, and attempts to put it in by hand did
> not generate any application bundle that would work. Now the ONLY way
> to run Jmol on OS X is from the command line as
> java -jar jmol.jar
> which for students is pretty inconvenient.   Can anyone recollect any
> reason why Jar bundler should now be failing to find the main class?
Details:

It took me quite a while to figure out how to get the Jar Bundler to
work. The Web-based documentation I was able to locate was quite sparse.


The steps I used to get it to work are:
 1. Launch the Jar Bundler application
    * Install Developer Toolkit
    * Launch /Developer/Applications/Jar Bundler
 2. Add jmol.jar to Classpath and Files
    * Click on tab "Classpath and Files"
    * Click on "Add" in the "Additional File & Resources" pane
    * select jmol.jar
 3. Add the Jmol class as the Main class in Build Information
    * Click on the tab "Build Information"
    * In the Main class type in 'org.openscience.jmol.app.Jmol'
 4. Uncheck advanced graphics stuff & choose jvm
    * Uncheck the graphics options at the bottom ... too many bugs on
Mac :-( * Select JVM as 1.3+
 5. Choose Icon
    * Jmol badly needs a new Icon ... any volunteers? :-)

 3. Clicke

>
> b) We are struggling with http://jmol.sourceforge.net/scripting.html
> on OS X browsers (IE, Safari. icab).  None of the scripts seem to
> want to run.  Turning debug on, we get
> "only objects may be called as functions" (from icab)
>
> Thus in the section "Enter your RasmolChime script"
> the links below will  appear in the box, but pressing
> execute script again produces the error above. I might add that  the
> molecules do render (in iCab, IE)  although Safari has some problems
> rendering the atoms (but not the bonds).
>
> Can you cast light on either of these two?
> PS We are working hard at converting as much  old Chime/Rasmol script
> stuff as we can to Jmol,.
>
> PPS I should know the answer to this, but dont!  The jmol.jar applet
> is about  500K in size.  This is a bit too large to routinely ask
> people to
>  download on  "popular" pages where the user might have a modem etc. I
> think it should be possible to ask the user (or administrator) to
> place this class in a standard  classpath somewhere, and have the
> system detect this without downloading the  500k applet each time.
> Have you looked into  this?
> --
>
> Henry Rzepa.
> +44 (0870) 132 3747 (eFax)
>  http://www.ch.ic.ac.uk/rzepa/ Dept. Chemistry, Imperial College
> London,
> SW7  2AZ, UK.
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> Jmol-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jmol-users


--------------------------------------------------
Miguel Howard                   [EMAIL PROTECTED]
c/Peņa Primera 11-13 esc dcha 6B
37002 Salamanca
Espaņa Spain
--------------------------------------------------
telefono casa 923 27 10 82 movil 650 52 54 58
--------------------------------------------------
To call from the US dial    9:00 am Pacific US   =
home 011 34 923 27 10 82   12:00 noon Eastern US =
cell 011 34 650 52 54 58    6:00 pm Spain
--------------------------------------------------





-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to