Book a Demo

Author Topic: using eaapi.jar w/o an EA installation  (Read 5930 times)

clueless

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
using eaapi.jar w/o an EA installation
« on: February 10, 2015, 09:48:50 pm »
Hi,

I'm using eaapi.jar and SSJavaCOM.dll to call RunHTMLReport within a java project to create an HTML report out of my eap file. All works fine.

But when I try to execute this on a second computer where EA is not installed, this won't work. Is it correct, that EA allways have to be installed or should eaapi.jar and SSJavaCOM.dll also work on a computer where EA is not installed?

I'm using EA 10.0.1005 and having a floating license. The second computer also has access to the floating license.

Are there any relevant changes in eaapi.jar and SSJavaCOM.dll in version 12?

Would be helpful if someone has an answer for me. Thanx.

Best regards,
Thorsten

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: using eaapi.jar w/o an EA installation
« Reply #1 on: February 10, 2015, 10:42:38 pm »
Thorsten,

The java dll/jar are only access gates to EA.exe. If EA isn't installed on the pc then they are of no use to you.

Geert

clueless

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: using eaapi.jar w/o an EA installation
« Reply #2 on: February 12, 2015, 11:17:48 pm »
Thank you for your quick reply.

I forgott to add some important information: On the second computer EA is not installed. But I copied the whole directory of my EA installation to this second computer and added it to the PATH variable. The exe was found but the report was not generated. I assume the EA has to be properly installed with all the windows registry stuff etc.?

Why do I want to do this: The second computer is a robot which does the compiling, linking, documentation, etc. of our development. We want to install as few programms as possible on this robot, because it is used for quite a lot different projects. And if all this projects would install their programms... So most of the programms we need are just copied to a tool directory.

Thorsten

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: using eaapi.jar w/o an EA installation
« Reply #3 on: February 12, 2015, 11:29:03 pm »
I'm pretty sure EA needs to be installed yes.

EA uses a lot of COM stuff, and that definitely requires lots of registry entries.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: using eaapi.jar w/o an EA installation
« Reply #4 on: February 13, 2015, 09:01:06 am »
It may be enough to run ea.exe /register as administrator to register the COM component.

clueless

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: using eaapi.jar w/o an EA installation
« Reply #5 on: February 14, 2015, 01:54:10 am »
yes this seems to work. thank you.

clueless

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: using eaapi.jar w/o an EA installation
« Reply #6 on: February 19, 2015, 12:13:12 am »
Okay, now I've got the next issue. First time when ea.exe is called by eaapi.jar a dialog opens and the path to the license server has to be entered.
Is there a way to prevent this dialog from showing up? Where do I have to store the information about the path to the license server? Can it be given as a parameter? Can it be entered into some config file or into the windows registry?
Thanx.

Thorsten
« Last Edit: February 19, 2015, 12:14:09 am by ulbricht »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: using eaapi.jar w/o an EA installation
« Reply #7 on: February 19, 2015, 01:22:59 am »
I'm pretty sure it's somewhere in the registry.
Check HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA and subkeys.

If not you can check in %appdata%\Sparx Systems\EA

Geert