LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does my DLL not show any classes?

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.

0 Kudos
Message 1 of 6
(3,375 Views)

Do you accidentally have the .net 4.0 line in your LabVIEW.exe.config?

Does JetBrains dotPeek load the .dll?

Message 2 of 6
(3,342 Views)

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

 

Message 3 of 6
(3,325 Views)

Now I remember why dotPeek was useful: it showed dependencies that weren't included.

Message 4 of 6
(3,306 Views)

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.

0 Kudos
Message 5 of 6
(3,298 Views)

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.

Message 6 of 6
(3,271 Views)