question

Tom avatar image
Tom asked

javac is having problems with 'third-party/Slf4j/slf4j-api-1.7.10.jar'

Maybe you guys can help me with this. I'm trying to build the helloworld sample but javac is having problems with the file 'third-party/Slf4j/slf4j-api-1.7.10.jar'. I checked the file using 'jar -tvf ../../third-party/Slf4j/slf4j-api-1.7.10.jar'. It can read the file and and, as best I can tell, shows the needed class files. I included a console dump below. Help! Thanks, Tom ------------------------------------------------------------------ Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\thisuser > javac -version javac 1.8.0_45 C:\Users\e654257\Documents\svn0-cirrrusbellassociates\root0\misc\amazon echo\AlexaAppKit\samples\helloworld > javac HelloWorldSpeechlet.java^ More? -cp ../../third-party/Slf4j/slf4j-api-1.7.10.jar^ More? -cp ../../third-party/log4j/log4j-1.2.17.jar^ More? -cp ../../third-party/J2ee_servlet/servlet-api-3.0.jar^ More? -cp ../../third-party/Jackson-annotations/jackson-annotations-2.3.2.jar^ More? -cp ../../third-party/Jackson-core/jackson-core-2.3.2.jar^ More? -cp ../../third-party/Jackson-databind/jackson-databind-2.3.2.jar^ More? -cp ../../third-party/JakartaCommons-IO/JakartaCommons-IO-2.4.jar^ More? -cp ../../third-party/JakartaCommons-codec/commons-codec-1.6.jar^ More? -cp ../../third-party/JakartaCommons-lang3/commons-lang3-3.x.jar^ More? -cp ../../third-party/Jetty/jetty-annotations-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-client-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-continuation-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-deploy-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-http-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-io-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-jaas-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-jmx-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-jndi-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-monitor-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-plus-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-proxy-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-rewrite-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-security-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-server-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-servlet-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-servlets-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-setuid-java-1.0.1.jar^ More? -cp ../../third-party/Jetty/jetty-util-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-webapp-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/jetty-xml-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/spdy-client-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/spdy-core-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/spdy-http-server-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/spdy-server-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/websocket-api-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/websocket-client-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/websocket-common-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/websocket-server-9.0.6.v20130930.jar^ More? -cp ../../third-party/Jetty/websocket-servlet-9.0.6.v20130930.jar^ More? -cp ../../third-party/Joda-time/joda-time-2.3.jar^ More? -cp ../../lib/alexa-appkit-1.0.81.2.jar HelloWorldSpeechlet.java:54: error: package org.slf4j does not exist import org.slf4j.Logger; ^ HelloWorldSpeechlet.java:55: error: package org.slf4j does not exist import org.slf4j.LoggerFactory; ^ HelloWorldSpeechlet.java:74: error: cannot find symbol private static final Logger log = LoggerFactory.getLogger(HelloWorldSpeechlet.class); ^ symbol: class Logger location: class HelloWorldSpeechlet ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/slu/Intent.class): warning: Cannot find annotation method 'value()' in type'JsonProperty': class file for com.fasterxml.jackson.annotation.JsonProperty not found ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/slu/Intent.class): warning: Cannot find annotation method 'value()' in type'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/slu/Intent.class): warning: Cannot find annotation method 'value()' in type'JsonInclude': class file for com.fasterxml.jackson.annotation.JsonInclude not found warning: unknown enum constant Include.NON_EMPTY reason: class file for com.fasterxml.jackson.annotation.JsonInclude$Include not found ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/slu/Slot.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/slu/Slot.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/IntentRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonTypeName': class file for com.fasterxml.jackson.annotation.JsonTypeName not found ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/IntentRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/IntentRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/IntentRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/LaunchRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonTypeName' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/LaunchRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/LaunchRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/Session.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/Session.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/Session.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/Session.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/Session.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/Session.class): warning: Cannot find annotation method 'value()' in type 'JsonInclude' warning: unknown enum constant Include.NON_EMPTY ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SessionEndedRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonTypeName' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SessionEndedRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SessionEndedRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SessionEndedRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SessionStartedRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonTypeName' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SessionStartedRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SessionStartedRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonProperty' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SpeechletResponse.class): warning: Cannot find annotation method 'value()' in type 'JsonInclude' warning: unknown enum constant Include.NON_DEFAULT ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/ui/PlainTextOutputSpeech.class): warning: Cannot find annotation method 'value()' in type 'JsonTypeName' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/ui/SimpleCard.class): warning: Cannot find annotation method 'value()' in type 'JsonTypeName'HelloWorldSpeechlet.java:74: error: cannot find symbol private static final Logger log = LoggerFactory.getLogger(HelloWorldSpeechlet.class); ^ symbol: variable LoggerFactory location: class HelloWorldSpeechlet ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SpeechletRequest.class): warning: Cannot find annotation method 'use()' in type 'JsonTypeInfo': class file for com.fasterxml.jackson.annotation.JsonTypeInfo not found warning: unknown enum constant Id.NAME reason: class file for com.fasterxml.jackson.annotation.JsonTypeInfo$Id not found ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SpeechletRequest.class): warning: Cannot find annotation method 'include()' in type 'JsonTypeInfo' warning: unknown enum constant As.PROPERTY reason: class file for com.fasterxml.jackson.annotation.JsonTypeInfo$As not found ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SpeechletRequest.class): warning: Cannot find annotation method 'property()' in type 'JsonTypeInfo' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SpeechletRequest.class): warning: Cannot find annotation method 'value()' in type 'JsonSubTypes': class file for com.fasterxml.jackson.annotation.JsonSubTypes not found ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SpeechletRequest.class): warning: Cannot find annotation method 'value()' in type 'Type': class file for com.fasterxml.jackson.annotation.JsonSubTypes$Type not found ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SpeechletRequest.class): warning: Cannot find annotation method 'value()' in type 'Type' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SpeechletRequest.class): warning: Cannot find annotation method 'value()' in type 'Type' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SpeechletRequest.class): warning: Cannot find annotation method 'value()' in type 'Type' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SpeechletRequest.class): warning: Cannot find annotation method 'shape()' in type 'JsonFormat': class file for com.fasterxml.jackson.annotation.JsonFormat not found warning: unknown enum constant Shape.STRING reason: class file for com.fasterxml.jackson.annotation.JsonFormat$Shape not found ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SpeechletRequest.class): warning: Cannot find annotation method 'pattern()' in type 'JsonFormat' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/speechlet/SpeechletRequest.class): warning: Cannot find annotation method 'timezone()' in type 'JsonFormat' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/ui/Card.class): warning: Cannot find annotation method 'use()' in type 'JsonTypeInfo' warning: unknown enum constant Id.NAME ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/ui/Card.class): warning: Cannot find annotation method 'include()' in type 'JsonTypeInfo' warning: unknown enum constant As.PROPERTY ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/ui/Card.class): warning: Cannot find annotation method 'property()' in type 'JsonTypeInfo' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/ui/Card.class): warning: Cannot find annotation method 'value()' in type 'JsonSubTypes' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/ui/Card.class): warning: Cannot find annotation method 'value()' in type 'Type' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/ui/OutputSpeech.class): warning: Cannot find annotation method 'use()' in type 'JsonTypeInfo' warning: unknown enum constant Id.NAME ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/ui/OutputSpeech.class): warning: Cannot find annotation method 'include()' in type 'JsonTypeInfo' warning: unknown enum constant As.PROPERTY ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/ui/OutputSpeech.class): warning: Cannot find annotation method 'property()' in type 'JsonTypeInfo' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/ui/OutputSpeech.class): warning: Cannot find annotation method 'value()' in type 'JsonSubTypes' ..\..\lib\alexa-appkit-1.0.81.2.jar(com/amazon/speech/ui/OutputSpeech.class): warning: Cannot find annotation method 'value()' in type 'Type' 4 errors 59 warnings C:\Users\thisuser > jar -tvf ../../third-party/Slf4j/slf4j-api-1.7.10.jar 0 Tue Jan 06 21:15:06 EST 2015 META-INF/ 558 Tue Jan 06 21:15:04 EST 2015 META-INF/MANIFEST.MF 0 Tue Jan 06 21:12:12 EST 2015 org/ 0 Tue Jan 06 21:15:06 EST 2015 org/slf4j/ 0 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/ 0 Tue Jan 06 21:12:12 EST 2015 org/slf4j/spi/ 3625 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/BasicMarker.class 1634 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/BasicMarkerFactory.class 3180 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/BasicMDCAdapter.class 1521 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/FormattingTuple.class 4773 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/MarkerIgnoringBase.class 6980 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/MessageFormatter.class 823 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/NamedLoggerBase.class 3267 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/NOPLogger.class 584 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/NOPLoggerFactory.class 1249 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/NOPMDCAdapter.class 8228 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/SubstituteLogger.class 1712 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/SubstituteLoggerFactory.class 199 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/Util$1.class 768 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/Util$ClassContextSecurityManager.class 1971 Tue Jan 06 21:12:12 EST 2015 org/slf4j/helpers/Util.class 180 Tue Jan 06 21:12:12 EST 2015 org/slf4j/ILoggerFactory.class 272 Tue Jan 06 21:12:12 EST 2015 org/slf4j/IMarkerFactory.class 1375 Tue Jan 06 21:12:12 EST 2015 org/slf4j/Logger.class 9979 Tue Jan 06 21:12:12 EST 2015 org/slf4j/LoggerFactory.class 666 Tue Jan 06 21:12:12 EST 2015 org/slf4j/Marker.class 1325 Tue Jan 06 21:12:12 EST 2015 org/slf4j/MarkerFactory.class 180 Tue Jan 06 21:12:12 EST 2015 org/slf4j/MDC$1.class 752 Tue Jan 06 21:12:12 EST 2015 org/slf4j/MDC$MDCCloseable.class 3396 Tue Jan 06 21:12:12 EST 2015 org/slf4j/MDC.class 455 Tue Jan 06 21:12:12 EST 2015 org/slf4j/spi/LocationAwareLogger.class 249 Tue Jan 06 21:12:12 EST 2015 org/slf4j/spi/LoggerFactoryBinder.class 249 Tue Jan 06 21:12:12 EST 2015 org/slf4j/spi/MarkerFactoryBinder.class 529 Tue Jan 06 21:12:12 EST 2015 org/slf4j/spi/MDCAdapter.class 0 Tue Jan 06 21:15:06 EST 2015 META-INF/maven/ 0 Tue Jan 06 21:15:06 EST 2015 META-INF/maven/org.slf4j/ 0 Tue Jan 06 21:15:06 EST 2015 META-INF/maven/org.slf4j/slf4j-api/ 2661 Tue Jan 06 21:11:42 EST 2015 META-INF/maven/org.slf4j/slf4j-api/pom.xml 109 Tue Jan 06 21:12:14 EST 2015 META-INF/maven/org.slf4j/slf4j-api/pom.properties
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

WangChao@Amazon avatar image
WangChao@Amazon answered
Seems like you have not setup your environment, and slf4j-api-1.7.10.jar is not in your classpath. Please check https://developer.amazon.com/public/solutions/devices/echo/alexa-app-kit/docs/using-the-alexa-appkit-sample-apps#Building%20and%20Running%20Hello%20World%20from%20the%20Command%20Line on how to build and run the Hello World from the Command Line. Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.