problem starting MagicDraw in batch mode

MagicDraw OpenAPI, scripting related questions and discussions

Moderator: Moderators

problem starting MagicDraw in batch mode

Postby Thomas Perry » Mon Mar 19, 2007 1:33 pm


I'm having trouble starting MagicDraw in batch mode from a java program.
I'm using the sample java class that comes with
MagicDraw to experiment with MagicDraw in batch mode. I'm invoking it from
eclipse with the following arguments. -Dinstall.root=C:progra~1magicd~1
-Djava.ext.dirs=C:progra~1magicd~1lib -Xmx300M -Xss16M

I have MagicDraw installed in C:Program FilesMagicDraw UML Community
Edition. The following statement returns with no problem

Application application = Application.getInstance();

But when I call the application.start(...) method I get the following log4j
messages and then the program just exits.
application.start(false, true, false, args, null);

log4j:WARN No appenders could be found for logger (GENERAL).

log4j:WARN Please initialize the log4j system properly.

I examined the value of the args input parameter and it was set as follows.

[, -Dinstall.root=C:progra~1magicd~1,
-Djava.ext.dirs=C:progra~1magicd~1lib, -Xmx300M, -Xss16M]

What am I doing wrong?


Thomas Perry
Posts Rating:

Re: problem starting MagicDraw in batch mode

Postby Donatas Simkunas » Fri Mar 23, 2007 12:34 am


It seems that install root is not found, or it points not to magicdraw installation. Could you try to run MagicDraw from your coee and send us
md.log and system err, and system output ?


Donatas Simkunas
Senior Programmer
No Magic Lithuanian Development Center
Savanoriu pr. 363, LT 49425 Kaunas
Phone: +370 37 324032   Fax: +370 37 320670

Donatas Simkunas
Posts Rating:

Return to Programmatic Extendibility

Who is online

Users browsing this forum: No registered users and 1 guest