Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: ag108 on July 29, 2014, 06:20:56 am
-
Hi, I'm brand new to Sparx EA and have been trying to get the java examples to work. I'd like to have a Java program access an eap we built. I set up eclipse and tried accessing a repository using
org.sparx.Repository r = new org.sparx.Repository();
and got:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Windows\System32\SSJavaCOM.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
I also tried to use the ExampleUI and got:
java.net.MalformedURLException
I wasn't sure how to set the URL. Here's what I tried:
urlString = "file:///C:/Program Files (x86)/Sparx Systems/EA/Code Samples/Java_Sample/src/org/sparx/javaexample/examples";
Sorry for all the nitty gritty. If there's some simple way to gain access, I'd greatly appreciate any pointers.
Thank you,
ag
-
I'm no Java guy, but the error message suggests that you have the wrong Java (32 bit) running on your 64 bit machine (what the heck? it should be able to do that?!).
q.
-
The Java interface has the same restriction as anything else connecting to EA. Only 32 bit processes can communicate effectively with EA being a 32 bit process. The error sounds like you are running a 64 bit JVM.
-
Thank you both. I am running a 64 bit JVM. Time to load in the 32 bit Java.