|
From: Mark P. <pe...@so...> - 2020-12-15 01:04:58
|
Hi Bob,
I've got inchi working with the latest Jmol from github if I run it by
clicking Debug at the top of eclipse. But when I build the project some of
the inchi dependencies aren't loading right. This affects build/Jmol.jar
and build/JmolData.jar
java -Djava.awt.headless=true -Xmx512m -jar
'/home/mark/winhome/Jmol-SwingJS/build/JmolData.jar' -j 'set forceAutobond
ON;load $caffeine;print {1.1}.find("inchi")'
vwr handling error condition: java.lang.NoClassDefFoundError:
net/sf/jniinchi/JniInchiException
java.lang.NoClassDefFoundError: net/sf/jniinchi/JniInchiException
How do I build JmolData.jar to include those dependencies?
Thanks,
Mark
On Tue, Dec 8, 2020 at 2:20 PM Robert Hanson <ha...@st...> wrote:
> if you refresh your project, after Eclipse does its automatic building
> there should be a /site/ directory. It's the file there.
>
> On Tue, Dec 8, 2020 at 3:59 PM Mark Perri <pe...@so...> wrote:
>
>> Thanks! I'll look into the tests / data.
>>
>> One more thing, is site-resources/__JmolApplet_applet.html the correct
>> way to test out the new JSmol? It looks like I'm building .js files, but I
>> get an error when running the .html file: RangeError: Maximum call stack
>> exceeded loading JSUtil.js (and others).
>>
>> Is there a swingjs example page hosted somewhere I can look at?
>>
>> Here's my .html file:
>> Thanks,
>> Mark
>>
>>
>>
>>
>> <!DOCTYPE html>
>> <html><title>SwingJS test JmolApplet</title>
>> <head><meta charset="utf-8" />
>> <script src=
>> "file:///C:/Users/perrim/Jmol-SwingJS/site/swingjs/swingjs2.js"></script>
>> <script>
>> if (!self.SwingJS)alert(
>> 'swingjs2.js was not found. It needs to be in swingjs folder in the same directory as '
>> + document.location.href)
>> Info = {
>> code: "_.JmolApplet",
>> main: null,
>> core: "NONE",
>> width: 600,
>> height: 400,
>> serverURL: 'https://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php',
>> j2sPath: 'file:///C:/Users/perrim/Jmol-SwingJS/site/swingjs/j2s',
>> console:'sysoutdiv',
>> allowjavascript: true
>> }
>> </script>
>> </head>
>> <body>
>> <script>
>> SwingJS.getApplet('testApplet', Info)
>> getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.
>> ClassFilesLoaded.sort().join('\n'))}
>> </script>
>> <div style="
>> position:absolute;left:900px;top:30px;width:600px;height:300px;">
>> <div id=sysoutdiv style="
>> border:1px solid green;width:100%;height:95%;overflow:auto"></div>
>> This is System.out. <a href="javascript:testApplet._clearConsole()">
>> clear it</a> <br>
>> Add ?j2snocore to URL to see full class list; ?j2sdebug to use uncompressed j2s/core files
>> <br><a href="javascript:getClassList()">get _j2sClassList.txt</a>
>> </div>
>> </body>
>> </html>
>>
>>
>> On Tue, Dec 8, 2020 at 3:48 AM Robert Hanson <ha...@st...> wrote:
>>
>>> That might only be set up on SourceForge. You will need the data
>>> directory. I am so glad you are doing this!
>>>
>>> See if this works for you.
>>>
>>> https://github.com/BobHanson/Jmol-datafiles
>>>
>>> I see that one of the G98 files fails. How about if I make you a
>>> contributor to Jmol-SwingJS?
>>>
>>>
>>>
>
> --
> Robert M. Hanson
> Professor of Chemistry
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
>
>
> If nature does not answer first what we want,
> it is better to take what answer we get.
>
> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>
> *We stand on the homelands of the Wahpekute Band of the Dakota Nation. We
> honor with gratitude the people who have stewarded the land throughout the
> generations and their ongoing contributions to this region. We acknowledge
> the ongoing injustices that we have committed against the Dakota Nation,
> and we wish to interrupt this legacy, beginning with acts of healing and
> honest storytelling about this place.*
>
|