.NET-Java bridge

User ca53b858bb

13-12-2006 13:47:41

Hello,





I followed the guide .NET GUI Example Application : http://www.chemaxon.com/marvin/examples/ChemAxon.NET/GUI/doc/index.html but when I run the application I have a System.IO.FileLoadException, JNBShare, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b18a44fb28aea122 is not found.


I have downloaded the last version of JNBridge (3.1) but i can't find the older version (3.0).


I also modified the .config file with 3.1.0.0 value for the JNBShare version but it still didn't work.





Is it possible that the marvin4.1.4_JnbProxies_2.0.dll references the version 3.0 of JNBridge and that it only works with that version ?





Thank you for your help

User ca53b858bb

13-12-2006 18:07:27

I contacted JNBridge to get the 3.0 version and now it works ^^





I also needed jawt.dll and JNBJavaEntry2.dll to run the application.


Explanation : http://www.jnbridge.com/blog/?cat=4


"Let’s say you have a nice WinForms app that contains a Java Swing component [...] You’ll need to add additional files to the project that aren’t actually referenced in the .NET code: in this case, the unmanaged files JNBJavaEntry.dll and jawt.dll (that need to be in the execution folder)"





* jawt can be found in the jre/bin folder


* JNBJavaEntry.dll or JNBJavaEntry2.dll (depending on the version of your .NET runtime) can be found in the JNBridge folder.





Hope it helps people dealing with Marvin in a .Net environnement :)

ChemAxon aa7c50abf8

14-12-2006 13:59:54

Thank you for your contribution!





Note that we plan to start redistributing the JNBridge runtime components soon.





Cheers,


Peter