1
Automation Interface, Add-Ins and Tools / Re: .NET AddIn isComposite missing?
« on: March 14, 2009, 01:00:22 am »
K, gotta report it...
thanks alot!
thanks alot!
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.
System.out.println("loading EA-API ...");
try {
System.loadLibrary("SSJavaCOM");
System.out.println("successfully loaded");
} catch (UnsatisfiedLinkError e) {
System.out.println("could not load EA-API: " + e.getMessage());
}
System.out.println("opening EA-Repository ...");
try {
Repository rep = new Repository();
rep.OpenFile("./test.eap");
System.out.println("LOADED! processing...");
try {
Collection<Package> models = rep.GetModels();
} catch (Exception e) {
System.out.println(rep.GetLastError());
e.printStackTrace();
}
} catch (Exception e) {
e.printStackTrace();
System.out.println("could not load Repository: " + e.getMessage());
}
loading EA-API ...
successfully loaded
opening EA-Repository ...
LOADED! processing...
Call FileOpen() or FileOpen2() before accessing other Repository members.
java.lang.Exception: I
at org.sparx.Repository.comGetModels(Native Method)
at org.sparx.Repository.GetModels(Repository.java:570)
at de.innobis.innproc.Starter.main(Starter.java:33)