Hello,
I'm trying to execute the examples of Java API (eeapi.jar). However, on my pc and pc of my colleague after starting Swing application and clicking "Run Example" I'm getting following exception:
An unhandled exception was thrown: Failed to construct object. Error code: 0x80040154
The same happens if I create my own example based on EA Java API, this error occurs in constructor of org.sparx.Repository!
public class EAExample {
public static void main(String[] args) {
System.loadLibrary("SSJavaCOM"); // this code is executed, dll is on the classpath!
org.sparx.Repository r = new org.sparx.Repository();
System.out.println("Repo created: "+r.GetProjectGUID());
}
}
Stack trace:
Exception in thread "main" java.lang.Exception: Failed to construct object. Error code: 0x80040154
at org.sparx.Repository.comConstructor(Native Method)
at org.sparx.Repository.<init>(Repository.java:170)
at org.sparx.javaexample.myexamples.EAExample.main(EAExample.java:

Environment:
Windows 7 64-bit
EA 10 Desktop Edition
JRE 6 32-bit (also tried JRE 7 32-bit and executing with different JREs from Eclipse)
Can anybody help me, what I'm doing wrong / missing?!