Author Topic: Create Addin with java  (Read 3901 times)

basalt

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Create Addin with java
« on: March 05, 2008, 12:46:56 am »
Hi all
Is there any possibility to create a "Addin" with Java and register the jar file to EA?
If there is an possibility, can someone give me some information how I can do this?
Thx
basalt

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Create Addin with java
« Reply #1 on: March 05, 2008, 12:59:50 am »
There is a Java interface.

What Sparx has done is used a third-party middleware product to create a bridge between Java and COM. Thus the Java API works pretty much like the COM version.

[EDIT: See Simon's post below.]

The Java API is still pretty young, so there are occasional bugs. But Sparx has been working hard to clear these, and we don't see many issues these days.

You'll find enough to get you started in the Java API folder underneath the folder where you installed EA.

HTH, David
« Last Edit: March 06, 2008, 02:57:54 am by Midnight »
No, you can't have it!

basalt

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Create Addin with java
« Reply #2 on: March 05, 2008, 01:09:15 am »
Thanks for your information.
I found this in the readme.txt in JavaApi Folder:
"You cannot currently use thie API to write plug-ins for EA. It is only suitable for accessing the automation server API. Plug-in capability is currently being planned."

So the conclusion for me is that I am not able to use Java to write an EA-Plugin (=Addin).

thx
basalt

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Create Addin with java
« Reply #3 on: March 05, 2008, 01:19:20 am »
Oops, I think I missed that point.

Still, I remember that line - or something much like it - from back when the Java API was in beta.

Does anyone know if this is still the case, or could the line be outdated (he asks hopefully...)?

David
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Create Addin with java
« Reply #4 on: March 05, 2008, 08:17:27 am »
The Java API only includes the ability for Java to call EA.  The ability to write addins isn't included.  This has always been a limitation of the Java API.  Although I believe a COM wrapper for Java should be technically feasible, I haven't had the chance to prove this yet.

Quote
What Sparx has done is used a third-party middleware product to bridge between Java and COM.
Sorry, but this is misinformation.  The truth is that the middleware between Java and our COM interface is generated by EA.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Create Addin with java
« Reply #5 on: March 06, 2008, 02:58:27 am »
Thank you Simon. I've amended the post accordingly.
No, you can't have it!