Author Topic: Access EA via COM (Win 7)  (Read 2682 times)

TLutz

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Access EA via COM (Win 7)
« on: August 22, 2011, 09:00:38 pm »
Hello,

im trying to convert an Enterprise Architect model to an EMF model.
Therefore i have to access the EA via COM. This works quite well under Windows XP, but Windows 7 comes up with an error.

I accessed EA from Java as described in your tutorial via the files SSJavaCOM.dll and eaapi.jar.

http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/setup.htm

Under Win7 the expression "org.sparx.Repository r = new org.sparx.Repository();" raises the exception "Failed to construct object. Error code: 0x80040154". (There is no problem with XP)

Does anyone already have experiences with this?

Many thanks in advance!
Tobias

Im using Enterprise Architect Version 8.0.858.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8064
  • Karma: +118/-20
    • View Profile
Re: Access EA via COM (Win 7)
« Reply #1 on: August 23, 2011, 08:19:16 am »
Let me guess.

You're attempting to use EA from the 64 bit version of the JDK.

EA is only available as a 32 bit application, so you won't be able to do it.

TLutz

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Access EA via COM (Win 7)
« Reply #2 on: August 23, 2011, 03:34:43 pm »
Yes, you are right, i have not realized this.

Tank you.