passing in parameters to Marvin for webstart

User 8688ffe688

07-04-2008 19:41:57

How do I pass in parameters to Marvin when I'm launching Marvin from a webstart link?

ChemAxon 7c2d26e5cf

08-04-2008 16:17:04

Webstart reads parameter from the jnlp file.


Actually its behaviour is similar to applet's one where parameters to the applet have to be defined in the HTML where the applet is located.


If you dynamically generate jnlp file, you can give some flexibility to your webstart example.


Some of our webstart examples are combined with JSP where the name of the molecule file is not hard coded into the example. You can select which molecule file would you like to see in the specified webstart application (by start-up).

User 8688ffe688

08-04-2008 17:09:15

Could you give more detail as to parameters that Marvin accepts. I understand the webstart parameters but I'm having difficulty locating Marvin parameters that can be passed in. I imagine these would be the parameters in the main. What are they?

ChemAxon 7c2d26e5cf

09-04-2008 13:47:57

Webstart calls the "main" method of the proper application. It means that you can use the command line parameters of the application in webstart.


In the user guide of the Marvin applications, you can find the list of accepted parameters.


- MarvinView application


- MarvinSketch applcation


- MarvinSpace application

User 8688ffe688

09-04-2008 15:22:28

Great! Thanks for the tip. I would like to display the appropriate icon for Marvin applications but I'm unable to find them on your website or in the zipped file. Could you point me in the direction to get the high resolution image icons for Marvin applications?

ChemAxon 909aee4527

10-04-2008 09:03:43

Hi Matthew,





the icons can be found here:


http://www.chemaxon.com/forum/viewpost15013.html#15013





We will find a more suitable place for them if they are needed more often.





Kind regards,


Judit

User 8688ffe688

23-07-2010 21:21:22

What is the syntax to specify number of columns and rows for marvin view from a webstart launch?

ChemAxon 5433b8e56b

27-07-2010 17:39:39

Hi Matthew,


you should set the "c" and "r" arguments for the launching View applicaiton in the jnlp file.


"c" defines the number of visible columns, and "r" defines the number of visible rows.


Best regards,
Istvan

User 8688ffe688

27-07-2010 20:05:44

Could you provide the exact syntax?  I could not get the following to work:


JNLP file xml snippet:


<application-desc main-class="chemaxon.marvin.View"><argument>c 8 r 6 http://webapp.tsd.globaltakeda.com/tmp/hidden.sdf</argument></application-desc>


<application-desc main-class="chemaxon.marvin.View"><argu<argument>http://webapp.tsd.globaltakeda.com/tmp/hidden.sdf c 8 r 6</argument></application-desc>

ChemAxon 5433b8e56b

27-07-2010 21:10:44

Hi,


I assume the follwoing should work:


<application-desc main-class="chemaxon.marvin.View">
    <argument>c=8</argument>
    <argument>r=6</argument>
    <argument>molfileURL</argument>
</application-desc>



regards,
Istvan