-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
您好,请问我在创建数据库的时候为什么会找不到Lancher类呀 #19
Comments
电脑是m1版本的mac |
您好,我也同样遇到此问题。电脑为win11,把项目引入IDEA之后,且Java版本为jdk-17,如下图所示: 但当我执行mvn exec:java -Dexec.mainClass="top.guoziyang.mydb.backend.Launcher" -Dexec.args="-create /tmp/mydb",出现如下图所示的问题: 根据图片1图中所给的链接[ERROR] [Help 1]:http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 页面提示说是异常出现的问题在于插件,到这里我就不知道怎么继续下去,希望能够得到提示,谢谢! 我看了看其他的issue,尝试使用mvn install,会出现如下图所示的问题: 根据图片1中所给的链接[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException 到这里,我就没有方向去寻找下一个解决方案,希望能够得到提示,谢谢! |
mvn exec:java -D"exec.mainClass"="top.guoziyang.mydb.backend.Launcher" -D"exec.args"="-create C:\temp\mydb" |
你可以看一下我上面的回复,应该是可以解决的喵 |
对对对 我电脑win11解决了 |
同样的问题已解决 |
[INFO]
[INFO] --- exec-maven-plugin:3.1.0:java (default-cli) @ MyDB ---
[WARNING]
java.lang.ClassNotFoundException: "top.guoziyang.mydb.backend.Launcher"
at org.codehaus.mojo.exec.URLClassLoaderBuilder$ExecJavaClassLoader.loadClass (URLClassLoaderBuilder.java:198)
at java.lang.ClassLoader.loadClass (ClassLoader.java:521)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:271)
at java.lang.Thread.run (Thread.java:834)
The text was updated successfully, but these errors were encountered: