Java ADAL:解决Java客户端应用示例的依赖关系 [英] ADAL for java: Resolving dependencies for java client app sample
问题描述
是否有任何说明可在Java版ADAL中运行public-client-app-sample?生成示例jar和库jar文件后,尝试运行 java -cp adal4j-0.1.0.jar; public-client-app-sample.jar PublicClient会产生(输入凭据后)
异常线程主要 java.lang.NoClassDefFoundError:com / nimbusds / oauth2 / s
dk / AuthorizationGrant。
什么是适当的类路径或是否有Maven目标?
Are there any instructions available to run public-client-app-sample in ADAL for Java ? After building the sample jar and library jar files, an attempt to run "java -cp adal4j-0.1.0.jar;public-client-app-sample.jar PublicClient" yields (after entering the credentials) Exception in thread "main" java.lang.NoClassDefFoundError: com/nimbusds/oauth2/s dk/AuthorizationGrant. What would be the appropriate classpath or is there a maven target?
推荐答案
我刚刚更新了代码,在示例中包括了exec插件。只需使用 mvn exec:java
来运行示例。我验证了它的作用
I just updated the code to include exec plugin in the sample. Simply use mvn exec:java
to run the sample. I verified that it works
这篇关于Java ADAL:解决Java客户端应用示例的依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!