【发布时间】:2019-01-05 01:03:07
【问题描述】:
我正在尝试在 GCP Cloud shell 上运行 DLP 检查命令,如“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
在运行命令之前我需要执行任何步骤吗?
【问题讨论】:
-
改进格式
-
这仅仅意味着类
com.example.dlp.Inspect不包含在jar中。检查你的构建。
标签: java gcloud google-cloud-dlp