Skip to content

java.lang.NoClassDefFoundError: com/google/protobuf/ByteString #814

Closed
@samirissa00

Description

@samirissa00

In which file did you encounter the issue?

NONE

Did you change the file? If so, how?

POM.xml remove de PARENT tag

Describe the issue

when i try the execute get that ERROR

usr/jdk64/jdk1.8.0_60/bin/java -cp target/vision-google-cloud-samples-1.0-SNAPSHOT.jar com.example.vision.Detect labels "/root/Downloads/safe_image.php.jpeg"
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/protobuf/ByteString
at com.example.vision.Detect.detectLabels(Detect.java:254)
at com.example.vision.Detect.argsHelper(Detect.java:95)
at com.example.vision.Detect.main(Detect.java:59)
Caused by: java.lang.ClassNotFoundException: com.google.protobuf.ByteString
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions