amazon-archives / legacy-skill-samples-java

These samples utilize a version of the Alexa Skills Kit SDK that is no longer supported. Please visit https://github.com/alexa/alexa-skills-kit-sdk-for-java
https://github.com/alexa/alexa-skills-kit-sdk-for-java
Other
94 stars 142 forks source link

Issue on running the HelloWorld alexa-skill-kit Sample from the Command Line #4

Open PrithiviRajG opened 6 years ago

PrithiviRajG commented 6 years ago

I am trying to run Hello world alexa skill kit java sample from command line using this documentation. I am able to build the jar successfully but I am getting the below exception on trying to run the sample with mvn exec:java -Dexec.executable=”java” -DdisableRequestSignatureCheck=true command

java.lang.ClassNotFoundException: Launcher
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:285)
        at java.lang.Thread.run(Thread.java:748)
ghost commented 6 years ago

For anyone else who has come across the same issue as I did today.

The reason the Launcher class cannot be found is because it does not currently exist in this repo. From what I can see it looks like the samples were moved from the alexa-skills-kit-java repo into this one but the Launcher class was not included. The latest version of alexa-skills-kit-java which does include Launcher appears to be this one: https://github.com/alexa/alexa-skills-kit-java/releases/tag/1.6.0.

Hopefully either this repo or the documentation will be updated as this is confusing to those of us new to alexa development.