Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - HorstKargl

Pages: [1]
1
Hi all,

I was searching about the topic how java classes can be registered as COM objects to use them from inside EA as plug-in.

I have found the following description:
http://www.codeguru.com/java/tij/tij0195.shtml

The Microsoft JVM provides a methode to  register a simple Java class as COM object with javareg
... but the Microsoft JVM is no longer supportet :-(

Has anybody an idea where I can get a Microsoft JVM?
... or has anybody another idea how to register a Java class as COM object?



2
hi,

I use the eaapi.jar to access the EA repository with Java. I did the configuration as described in the help file:
http://www.sparxsystems.com.au/EAUserGuide/index.html?setup.htm

However, when I try to acces an existing model I always get null for the requested elements. For instance the following code do not deliver a collections for authors and for the models:
         ....
         org.sparx.Repository r = new org.sparx.Repository();
         boolean opened = r.OpenFile("E:\\eaTest.eap");
         Collection<Author> authors = r.GetAuthors();
         Collection<org.sparx.Package> models = r.GetModels();
         ....

Has anyone  a suggestion what I have done wrong?

PS: the eaTest.EAP contains a root package with subpackages and two authors!

thx, horst

Pages: [1]