06-11-2013 12:26 PM - edited 06-11-2013 12:28 PM
I am trying to build a NASA WorldWind application in LabView. WorldWind is supported by Java libraries. I can get it to run in eclipse. I am using IKVM to convert the WorldWind .jar files to .NET 2.0 .dll files. When I try to load it in LabView I get this message under objects:
"An error occured trying to load the assembly"
What sort of errors would cause this problem? Any words of wisdom here?
Thanks.
06-11-2013 05:03 PM
Do you accidentally have the .net 4.0 line in your LabVIEW.exe.config?
Does JetBrains dotPeek load the .dll?
06-12-2013 06:35 AM
Although I never tried IKVM with LV but with C# I remember that class loading can be tricky. Did you convert all required jar files to a single assembly? If not, is the class path setting correct?
Class loading options are explained here: http://sourceforge.net/apps/mediawiki/ikvm/index.php?title=ClassLoader
06-12-2013 12:09 PM
Now I remember why dotPeek was useful: it showed dependencies that weren't included.
06-12-2013 12:30 PM
Todd - JetBrains does load the DLL. Meant to throw that into my original post. I'll check the config file, but I doubt it.
candidus - it's just one jar file. I'm not sure how to check the class path setting? I'll check your link.
Thanks for the help thus far.
06-14-2013 02:14 PM
I found a quick tutorial about WorldWind and it seems there are multiple jar files necessary, but before going deeper into the details of class loading you should check if your application runs on ikvm, using ikvm.exe as JVM. If it does there are good chances to compile it into an assembly, if it doesn't you need another way to communicate with your java app, e.g. via TCP/IP.