Hi Brandon I hacve no experience with JWS, but have you read the section in the Wiki? http://wiki.jmol.org:81/index.php/Java_Web_Start
________________________________ De: [EMAIL PROTECTED] em nome de j brandon keith Enviada: seg 19/05/2008 5:04 Para: [email protected] Assunto: [Jmol-developers] (no subject) Hi, I'm new to Jmol. I'm trying to run it via Java Web start. Even doing a simple jnlp like that below *doesn't work*. I click on the link and the Java logo comes up but then *nothing happens*. What basic thing am I doing wrong. <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://trueblue.caltech.edu/java"> <information> <title>Jmol</title> <vendor>DANSE</vendor> <homepage href="http://danse.us <http://danse.us/> " /> <description>Jmol</description> </information> <offline-allowed/> <security> <all-permissions/> </security> <resources> <j2se version="1.5+" /> <jar href="Jmol.jar" /> </resources> <component-desc main-class="org.openscience.jmol.app.Jmol" /> </jnlp> I'm using Java 6. It works fine from the command line: java -jar Jmol.jar Also, I'd like to launch Jmol via Java web start (jws) and have it automatically load a cif file. However, I believe jws cannot accept parameters. So I write a class that calls jmol and loads "sample.cif" from a dynamically generated code base: <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://trueblue.caltech.edu/java"> <information> <title>Sample Viewer</title> <vendor>DANSE</vendor> <homepage href="http://danse.us <http://danse.us/> " /> <description>Sample Viewer</description> </information> <offline-allowed/> <security> <all-permissions/> </security> <resources> <j2se version="1.5+" java-vm-args="-Xmx512m -splash:splash.png"/> <jar href="sampleViewer.jar"/> <jar href="Jmol.jar" /> </resources> <component-desc main-class="sampleViewer.Main" /> </jnlp> But that doesn't work either (probably related to previous error). But is this the best way to do this or is there a javascript way that is better? PS: Don't want to use just applets--need jws to work as well. -- J. Brandon Keith ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
<<winmail.dat>>
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
