The original aplication Works perfectly with the “Free” Version, but we only worked with a single context. So that´s the reason why we adquired the “Multicontext licence”.
The problem that we found is that when we try to access from our java classes to any method with Multicontext, an exception appears:
java.lang.UnsatisfiedLinkError: ContextAdd
at Vensim2009.ContextAdd(Native Method)
at VensimThreadSim.iniciaHilo(VensimThreadSim.java:65)
We think that the problem is that it doesn’t really load correctly the vendlstc.dll that should substitute the original venjava.dll, which is installed automatically by Vensim. We don’t know if we mustt install them using an special way, or move them to a specific path
We have also run the VensimMCTester which is included with the Multicontext, for know if it has been installed correctly, and the result was:
D:\Proyecto Fin Carrera\Dll multicontext>java -cp vensim.jar; VensimMCTester
Vensim DLL Version
try a context 0 simulation
Failed to simulate on conext 0
Test simulation on a non exististent context - should fail
Failed to simulate on conext 3
Context add failed
Context add failed
Context add failed
Context add failed
Context add failed
Launching thread 0
Launching thread 1
Launching thread 2
Launching thread 3
Launching thread 4
Failed to simulate on conext 0
Finishing with cid 0
Failed to simulate on conext 0
Finishing with cid 0
Failed to simulate on conext 0
Finishing with cid 0
Failed to simulate on conext 0
Finishing with cid 0
Failed to simulate on conext 0
Finishing with cid 0
Anybody can help us, please?
