MagicDraw (no magic example) plugin not working

MagicDraw OpenAPI, scripting related questions and discussions

Moderator: Moderators

MagicDraw (no magic example) plugin not working

Postby hendrik.biet@alumni.fh-aachen.de » Thu Oct 14, 2021 3:45 am

Here is my log error:
java.lang.ClassNotFoundException: myplugin.MyPlugin
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.nomagic.magicdraw.plugins.d.x(d.java:403)
at com.nomagic.magicdraw.core.h.t(h.java:40)
at com.nomagic.rcpf.product.o.a(o.java:283)
at com.nomagic.rcpf.product.p.b(p.java:94)
at com.nomagic.rcpf.product.p.a(p.java:78)
at com.nomagic.magicdraw.core.Application.internalStart(Application.java:685)
at com.nomagic.magicdraw.core.Application.start(Application.java:454)
at com.nomagic.magicdraw.MagicDrawApplicationLauncher.launch(MagicDrawApplicationLauncher.java:24)
at com.nomagic.magicdraw.ApplicationGateway.start(ApplicationGateway.java:46)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at com.nomagic.osgi.launcher.FrameworkLauncher$DefaultApplication.run(FrameworkLauncher.java:227)
at com.nomagic.osgi.launcher.FrameworkLauncher.runFrameworkApplication(FrameworkLauncher.java:177)
at com.nomagic.osgi.launcher.FrameworkLauncher.run(FrameworkLauncher.java:114)
at com.nomagic.osgi.launcher.FrameworkLauncher.run(FrameworkLauncher.java:93)
at com.nomagic.osgi.launcher.ProductionFrameworkLauncher.run(ProductionFrameworkLauncher.java:66)
at com.nomagic.osgi.launcher.ProductionFrameworkLauncher.main(ProductionFrameworkLauncher.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.nomagic.launcher.Launcher.startMainClass(Launcher.java:337)
at com.nomagic.launcher.Launcher.start(Launcher.java:108)
at com.nomagic.launcher.Launcher.main(Launcher.java:70)

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 csm.properties 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.
hendrik.biet@alumni.fh-aachen.de
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