Page 1 of 1

Classpath errors with plugin after patching 9.0

PostPosted: Sun May 07, 2006 5:29 am
by Faisal Waris
I have a plugin that was running well until, I patched 9.0 to path 2 (Build
2006 02 28 15:160).

Now I am now getting classpath errors (both in Eclipse when debugging and in
MagicDraw when running standalone).

Specifically, when running from Eclipse, the plugin get the following
errror:

java.lang.NoClassDefFoundError: y/layout/LayoutGraph
at
com.nomagic.magicdraw.actions.ActionsCreator.createGeneralActions(ActionsCreator.java)
at
com.nomagic.magicdraw.actions.ActionsProvider.createGeneralActions(ActionsProvider.java)
at com.nomagic.magicdraw.core.n.i(n.java)
at com.nomagic.magicdraw.core.n.b(n.java)
at
com.nomagic.magicdraw.core.Application.getActionsManager(Application.java)
at com.nomagic.magicdraw.actions.MDAction.setGroup(MDAction.java)
at com.nomagic.actions.NMAction.<init>(NMAction.java)
at com.nomagic.magicdraw.actions.MDAction.<init>(MDAction.java)
at
com.nomagic.magicdraw.ui.actions.DefaultDiagramAction.<init>(DefaultDiagramAction.java)
at org.aiag.bcs.md.BCSPlugin$ValidationAction.<init>(BCSPlugin.java:140)
at org.aiag.bcs.md.BCSPlugin.init(BCSPlugin.java:68)
at com.nomagic.magicdraw.plugins.PluginsManager.a(PluginsManager.java)
at com.nomagic.magicdraw.plugins.PluginsManager.c(PluginsManager.java)
at com.nomagic.magicdraw.core.Application.internalStart(Application.java)
at com.nomagic.magicdraw.core.Application.start(Application.java)
at com.nomagic.magicdraw.core.Application.start(Application.java)
at com.nomagic.magicdraw.Main.main(Main.java)


And when running from MagicDraw only, the plugin gets a different classpath
error for a plugin supplied class.







Classpath errors with plugin after patching 9.0

PostPosted: Sun May 07, 2006 5:30 am
by Faisal Waris
I have a plugin that was running well until, I patched 9.0 to path 2 (Build
2006 02 28 15:160).

Now I am now getting classpath errors (both in Eclipse when debugging and in
MagicDraw when running standalone).

Specifically, when running from Eclipse, the plugin get the following
errror:

java.lang.NoClassDefFoundError: y/layout/LayoutGraph
at
com.nomagic.magicdraw.actions.ActionsCreator.createGeneralActions(ActionsCreator.java)
at
com.nomagic.magicdraw.actions.ActionsProvider.createGeneralActions(ActionsProvider.java)
at com.nomagic.magicdraw.core.n.i(n.java)
at com.nomagic.magicdraw.core.n.b(n.java)
at
com.nomagic.magicdraw.core.Application.getActionsManager(Application.java)
at com.nomagic.magicdraw.actions.MDAction.setGroup(MDAction.java)
at com.nomagic.actions.NMAction.<init>(NMAction.java)
at com.nomagic.magicdraw.actions.MDAction.<init>(MDAction.java)
at
com.nomagic.magicdraw.ui.actions.DefaultDiagramAction.<init>(DefaultDiagramAction.java)
at org.aiag.bcs.md.BCSPlugin$ValidationAction.<init>(BCSPlugin.java:140)
at org.aiag.bcs.md.BCSPlugin.init(BCSPlugin.java:68)
at com.nomagic.magicdraw.plugins.PluginsManager.a(PluginsManager.java)
at com.nomagic.magicdraw.plugins.PluginsManager.c(PluginsManager.java)
at com.nomagic.magicdraw.core.Application.internalStart(Application.java)
at com.nomagic.magicdraw.core.Application.start(Application.java)
at com.nomagic.magicdraw.core.Application.start(Application.java)
at com.nomagic.magicdraw.Main.main(Main.java)


And when running from MagicDraw only, the plugin gets a different classpath
error for a plugin supplied class.







Re: Classpath errors with plugin after patching 9.0

PostPosted: Mon May 08, 2006 11:55 pm
by Tomas Pugzlys
Hello,

Probably your Eclipse debug configuration uses unpatched MagicDraw classes.

When patch is downloaded patched classes are contained in patch.jar

Please add to your Eclipse debug configuration the following jar:
<MagicDraw install root>/lib/patch.jar

patch.jar should be above md.jar in jar order list.

Hope this helps.

Regards,
--
Tomas Pugzlys
Programmer
No Magic Lithuanian Development Center
Savanoriu pr. 363- IV, LT-49425, Kaunas
P.O. box 2166, LT-44011, Kaunas
Phone: +370 37 324032 Fax: +370 37 320670
e-mail : tomasp
WWW: http://www.magicdraw.com
--
MagicDraw - UML Made Simple


empty

PostPosted: Fri Dec 18, 2009 1:22 am
by Guest