Closed EvanMath closed 3 years ago
Hi,
Looks like you forgot the "s" in GreetingsBot
in your mvn command:
mvn exec:java -Dexec.mainClass="com.xatkit.example.GreetingsBot"
Oh, I am so sorry I didn't notice that. Thank you. Is there any different way to communicate, like for example a channel in Slack or something similar?
Not sure if this is what you are asking but you can indeed deploy the bot on a Slack channel, see https://github.com/xatkit-bot-platform/xatkit/wiki/Xatkit-Slack-Platform
Not sure either. If you are talking about communication channels for the bot the link @jcabot provided is what you need. If you are talking about a communication channel between you and us: sorry, we only use asynchronous channels for issues related to our public repositories. If you want to reach me by email you can find it in my github profile.
This being said, if you have a precise request (that may require synchronous communication) feel free to ask.
I have no prior knowledge of chatbots and I have a lot of questions coming up while I study the tutorials, so I was asking for a different way to communicate with you. But anyway, thank you very much!
Greetings, I am trying to follow the installation and while checking the installation I ran onto this An exception occurred while executing the Java class. com.xatkit.example.GreetingBot.
I ran it also to full debug mode and got the following:
[WARNING] java.lang.ClassNotFoundException: com.xatkit.example.GreetingBot at java.net.URLClassLoader.findClass (URLClassLoader.java:471) at java.lang.ClassLoader.loadClass (ClassLoader.java:589) at java.lang.ClassLoader.loadClass (ClassLoader.java:522) at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:246) at java.lang.Thread.run (Thread.java:834) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.867 s [INFO] Finished at: 2021-02-17T18:03:31+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java (default-cli) on project greetings-bot-example: An exception occured while executing the Java class. com.xatkit.example.GreetingBot -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java (default-cli) on project greetings-bot-example: An exception occured while executing the Java class. com.xatkit.example.GreetingBot at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.MojoExecutionException: An exception occured while executing the Java class. com.xatkit.example.GreetingBot at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:311) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: java.lang.ClassNotFoundException: com.xatkit.example.GreetingBot at java.net.URLClassLoader.findClass (URLClassLoader.java:471) at java.lang.ClassLoader.loadClass (ClassLoader.java:589) at java.lang.ClassLoader.loadClass (ClassLoader.java:522) at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:246) at java.lang.Thread.run (Thread.java:834) [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
I have checked the recommended article here, but I can't understand how to solve it.