MagicDraw (no magic example) plugin not working

MagicDraw OpenAPI, scripting related questions and discussions

Moderator: Moderators

MagicDraw (no magic example) plugin not working

Postby » Thu Oct 14, 2021 3:45 am

Here is my log error:
java.lang.ClassNotFoundException: myplugin.MyPlugin
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at com.nomagic.magicdraw.plugins.d.x(
at com.nomagic.magicdraw.core.h.t(
at com.nomagic.rcpf.product.o.a(
at com.nomagic.rcpf.product.p.b(
at com.nomagic.rcpf.product.p.a(
at com.nomagic.magicdraw.core.Application.internalStart(
at com.nomagic.magicdraw.core.Application.start(
at com.nomagic.magicdraw.MagicDrawApplicationLauncher.launch(
at com.nomagic.magicdraw.ApplicationGateway.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at com.nomagic.osgi.launcher.FrameworkLauncher$
at com.nomagic.osgi.launcher.FrameworkLauncher.runFrameworkApplication(
at com.nomagic.osgi.launcher.ProductionFrameworkLauncher.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.nomagic.launcher.Launcher.startMainClass(
at com.nomagic.launcher.Launcher.start(
at com.nomagic.launcher.Launcher.main(

And the info about the plugin from the log:
INFO PLUGINS - Plugin [ name = My First Plugin, id = my.first.plugin, provider = Coder, version = 1.0, enabled = true, class = myplugin.MyPlugin, ownClassloader = false, requires api = 1.0, runtime = [file:/C:/Program%20Files/Cameo%20Systems%20Modeler/plugins/myplugin/myplugin.jar]]

I tried compiling it just like the example over the command line, have the plugin.xml exactly copyied and added the path to the classpath
but it still says it cant find my own class. I did everything exactly like in the example.
And it still isnt working. Help would be very much appreciated.
Forum Newbie
Forum Newbie
Posts: 1
Posts Rating:1
Joined: Thu Oct 14, 2021 3:27 am

Return to Programmatic Extendibility

Who is online

Users browsing this forum: No registered users and 0 guests