Book a Demo

Author Topic: SSJavaCOM.dll: Can't load IA 32-bit .dll on a AMD  (Read 4891 times)

dhoffman

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
SSJavaCOM.dll: Can't load IA 32-bit .dll on a AMD
« on: March 19, 2011, 08:38:35 am »
I have the following code:

    public static void main(String[] args) throws ClassNotFoundException
    {
        Repository rep = new Repository();
        rep.OpenFile("C:/Users/dhoffman/Documents/SMS.eap");
        Package pkg = rep.GetPackageByGuid("47183354-8D44-44cf-8811-C1251532FC95");
        DBTableReader tr = new DBTableReader();
        EATableWriter eaTw = new EATableWriter();
        eaTw.writeTables(pkg, tr.readTables());
    }

and it throws this exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Sparx Systems\EA Trial\Java API\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(ClassLoader.java:1803)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1028)
        at org.sparx.Repository.<clinit>(Repository.java:21)
        at enterprisearchitectloader.LoadTables.main(LoadTables.java:19)

is there a 64 bit version of SSJavaCOM.dll?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: SSJavaCOM.dll: Can't load IA 32-bit .dll on a
« Reply #1 on: March 21, 2011, 08:27:27 am »
No, Enterprise Architect and all its supporting libraries are only available as 32 bit.

From the quick google search that I just ran, you need to install the 32 bit version of the jdk.

(See http://markmail.org/message/buqsksoy2htn7y63)