我正试图在GCP Cloud shell上运行DLP inspect命令,如"example-inspect a string"页面所示。
我按此顺序运行了以下命令:
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 me@somedomain.com"
我一直得到以下错误:
Could not find or load main class com.example.dlp.Inspect
在运行命令之前,我需要执行任何步骤吗?
我将更新README,但如果您已经运行了mvn,则需要通过"cd dlp"进入dlp包并从那里运行命令。
https://github.com/GoogleCloudPlatform/java-docs-samples/pull/1164