Book a Demo

Author Topic: Unable to use Automation Interface in Java 64 bits  (Read 3554 times)

Marcelo Mrack

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • Make Easy, Keep Clean, and use Merlin
    • View Profile
Unable to use Automation Interface in Java 64 bits
« on: December 28, 2009, 04:55:06 am »
I'm trying to use Enterprise Architect Automation Interface (SSJavaCOM.dll and Eaapi.jar) in a Java 1.6u17 environment, with a Windows XP 64bits.

But, when the application start, the error:

java.lang.UnsatisfiedLinkError: C:\WINDOWS\system32\SSJavaCOM.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
      at java.lang.ClassLoader.loadLibrary0(Unknown Source)
      at java.lang.ClassLoader.loadLibrary(Unknown Source)
      at java.lang.Runtime.loadLibrary0(Unknown Source)
      at java.lang.System.loadLibrary(Unknown Source)
      at org.sparx.Repository.<clinit>(Repository.java:13)
      at br.com.treelayer.ea.util.Main.getRepository(Main.java:39)
      at br.com.treelayer.ea.util.TestMain.testGetRepository(TestMain.java:42)


occurs.

Does anyone have information about this?

PS. The project works fine in an 32 bits environment.

smendonc

  • EA User
  • **
  • Posts: 148
  • Karma: +5/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Unable to use Automation Interface in Java 64
« Reply #1 on: December 28, 2009, 10:41:42 am »
EA is a 32 bit application and runs as such even on a 64 bit system.  The 64 bit java native class loader is throwing the error when it is attempting to dynamically load a native class because it is making the assumption that the native class was compiled as 64 bit code.  

I wasn't sure from your last comment if you had tried forcing your extensions to use the 32 bit JRE (which will work on a 64 bit windows system).  This should work like native 32 bit OS environments.

Stan.

Marcelo Mrack

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • Make Easy, Keep Clean, and use Merlin
    • View Profile
Re: Unable to use Automation Interface in Java 64
« Reply #2 on: December 29, 2009, 05:38:34 am »
Thanks, Stan.

I downloaded a 32bit JRE, and setup my project to compile and run with this.

Now, all working fine, although I need to keep 2 JVM in my Windows 64.