You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run the language-entities project and finding below runtime errors while executing the app .
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/auth/Servi
ceAccountSigner
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.google.api.gax.core.GoogleCredentialsProvider.getCredentials(Goog
leCredentialsProvider.java:54)
at com.google.cloud.language.v1.LanguageServiceClient.(LanguageSer
viceClient.java:124)
at com.google.cloud.language.v1.LanguageServiceClient.create(LanguageSer
viceClient.java:112)
at com.google.cloud.language.v1.LanguageServiceClient.create(LanguageSer
viceClient.java:103)
at com.google.cloud.language.samples.Analyze.main(Analyze.java:60)
Caused by: java.lang.ClassNotFoundException: com.google.auth.ServiceAccountSigne
r
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 17 more
@dineshchandra18 I'm not sure how you're encountering this issue, did you try following the instructions in the README.md file? I just was able to run the sample with the basic settings, e.g.:
Build the sample
mvn clean compile assembly:single
Run the sample against basic text
java -cp target/language-entities-1.0-jar-with-dependencies.jar \
com.google.cloud.language.samples.Analyze \
syntax \
"The quick brown fox jumped over the lazy dog."
Activity
dineshchandra18 commentedon Jun 30, 2017
Hi Guys , Did you get a chance to look into above issue ?
gguuss commentedon Jul 6, 2017
@dineshchandra18 I'm not sure how you're encountering this issue, did you try following the instructions in the README.md file? I just was able to run the sample with the basic settings, e.g.:
Build the sample
Run the sample against basic text
See the output
jabubake commentedon Jul 25, 2017
@dineshchandra18 : Please see if the workaround mentioned here helps. googleapis/google-cloud-java#2192
kurtisvg commentedon Jun 10, 2019
Notice: this issue has been closed because it has been inactive for 685 days. You may reopen this issue if it has been closed in error.
chore: release 0.122.8 (#713)
chore: release 0.122.8 (#713)
chore: release 0.122.8 (#713)
chore(deps): update dependency com.google.cloud:google-cloud-notifica…
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…