Page 1 of 1

problem starting MagicDraw in batch mode

PostPosted: Mon Mar 19, 2007 1:33 pm
by Thomas Perry
Hello,

I'm having trouble starting MagicDraw in batch mode from a java program.
I'm using the sample java class ExportDiagramImages.java that comes with
MagicDraw to experiment with MagicDraw in batch mode. I'm invoking it from
eclipse with the following arguments.

-Dlog4j.configuration=C:progra~1magicd~1datadebug.properties -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.

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


What am I doing wrong?

Thanks,



Re: problem starting MagicDraw in batch mode

PostPosted: Fri Mar 23, 2007 12:34 am
by Donatas Simkunas
Hello,

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 ?

Regards

--
Donatas Simkunas
Senior Programmer
No Magic Lithuanian Development Center
Savanoriu pr. 363, LT 49425 Kaunas
Phone: +370 37 324032   Fax: +370 37 320670
WWW: http://www.magicdraw.com