Book a Demo

Author Topic: How to load java class/jar as add-in  (Read 5185 times)

danielku15

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
  • Nobody is perfect and I'm a nobody :D
    • View Profile
How to load java class/jar as add-in
« on: July 26, 2007, 09:39:12 pm »
Hi there.

I've got a question. I have written a small add-in which makes it possible to change options of all or selected elements in the current diagram. (hide connectors, hide connector labels, change color,..) But how can i load the compiled class or the jar with the class in EA. I've copied the SSJavaCOM.dll to C:\windows\system32 (PATH) and the eaapi.jar and the SSJavaCom.dll are included in the CLASSPATH. I've added a new key in the registery. But now i need to register the add-in as COM object so that EA can find it. But how?

I hope you help me and understand my bad english :D

Greets Daniel
CoderLine.net - The Online Coder Resource (comming soon)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to load java class/jar as add-in
« Reply #1 on: July 29, 2007, 11:53:55 am »
Sorry, the Java API wrapper does not (yet) support addins to EA.

danielku15

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
  • Nobody is perfect and I'm a nobody :D
    • View Profile
Re: How to load java class/jar as add-in
« Reply #2 on: July 30, 2007, 12:07:50 am »
And if I use something like http://www.comeclipse.com/
Can EA load such COM-Objects?
CoderLine.net - The Online Coder Resource (comming soon)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to load java class/jar as add-in
« Reply #3 on: July 30, 2007, 01:10:12 pm »
I can't guarantee anything, but if EA sees a COM object then you should be fine.

danielku15

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
  • Nobody is perfect and I'm a nobody :D
    • View Profile
Re: How to load java class/jar as add-in
« Reply #4 on: July 31, 2007, 12:32:14 am »
I'll try it and post if I get results.
CoderLine.net - The Online Coder Resource (comming soon)