admin管理员组文章数量:1335380
I'm trying to programmatically interact with MagicDraw for the first time, but I am having trouble as I am constantly getting errors. Here is a very simple script I am trying to run:
package com.mycompany.plugin;
import com.nomagic.magicdraw.core.Application;
public class MyPlugin {
public static void main(String[] args) {
try {
Application app = Application.getInstance();
System.out.println("MSOSA Plugin is running!");
} catch (Exception e) {
e.printStackTrace();
}
}
}
I cannot run this because I am getting the error:
Caused by: java.lang.NoClassDefFoundError: com/nomagic/magicdraw/core/Application
Essentially I cannot use any of the Core Classes as they are not found. I am using VSCode with Maven, and I have included the JAR files in a local lib folder, and my pom.xml is pointing to those JAR files in the dependencies section. So I believe I have configured everything correctly. But for some reason I am always getting these errors. Please can someone advise?
本文标签: javaMagicDraw OpenAPICannot find any core ClassesStack Overflow
版权声明:本文标题:java - MagicDraw OpenAPI - Cannot find any core Classes - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742369119a2461878.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论