GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Could not find or load main class com.example.dlp.Inspect · Issue #1163 · GoogleCloudPlatform/java-docs-samples

Could not find or load main class com.example.dlp.Inspect #1163

New issue
Copy link
New issue
Copy link
Closed
Closed
Could not find or load main class com.example.dlp.Inspect#1163
Copy link

Description

@pmchang
pmchang
opened on Jul 24, 2018
Issue body actions

In which file did you encounter the issue?

https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/dlp

I'm trying to run the DLP inspect command on GCP Cloud shell as shown on the "example - Inspect a string" page:

I ran the following commands in this order:

mvn clean package (Build was successful)
java -cp target/dlp-samples-1.0-jar-with-dependencies.jar com.example.dlp.Inspect -s "My phone number is (123) 456-7890 and my email address is [email protected]"

Did you change the file? If so, how?

No

Describe the issue

I keep getting the following error:

“Could not find or load main class com.example.dlp.Inspect”

Do I need to do any steps prior to running the command?

Thank you for your attention. Any feedback would be greatly appreciated.
Paul

Activity

  1. averikitsch commented on Dec 13, 2018

    @averikitsch
    averikitsch
    on Dec 13, 2018
    Contributor
    More actions

    Hi Paul - Thanks for providing this information. If your build was successful there shouldn't be any additional steps. My first thought is make sure you are in the correct directory (java-docs-samples/dlp) or make sure you have correct the path to the file target/dlp-samples-1.0-jar-with-dependencies.jar.

  2. averikitsch
    closed this as completedon Jun 3, 2019
  3. Shabirmean
    added 2 commits that reference this issue on Nov 17, 2022

    deps: update dependency com.google.cloud:google-cloud-core to v2.8.0 (#…

    cbd121a

    deps: update dependency com.google.cloud:google-cloud-core to v2.8.0 (#…

    820d36d
  4. anguillanneuf
    added a commit that references this issue on Dec 5, 2022

    deps: update dependency com.google.cloud:google-cloud-core to v2.8.0 (#…

    a18a4bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.