简体   繁体   English

Google Cloud Tools for Eclipse用于GcsFilename的ClassNotFoundException

[英]Google Cloud Tools for Eclipse ClassNotFoundException for GcsFilename

I am trying to run Google's standard App Engine locally within Eclipse. 我想在Eclipse中本地运行Google的标准App Engine。 I need to save a file to Cloud Storage. 我需要将文件保存到云存储。 One of the classes I am using is GcsFilename. 我使用的其中一个类是GcsFilename。 I am getting a "java.lang.ClassNotFoundException: com.google.appengine.tools.cloudstorage.GcsFilename" exception when I run my application. 我运行我的应用程序时收到“java.lang.ClassNotFoundException:com.google.appengine.tools.cloudstorage.GcsFilename”异常。

I had to add the jar appengine-gcs-client-08.jar to my build path to get the code to compile. 我必须将jar appengine-gcs-client-08.jar添加到我的构建路径以获取要编译的代码。 When it runs I get the exception mentioned above. 当它运行时,我得到上面提到的例外。 Currently the project also includes the following libraries: BigQuery API, BigQuery Data Transfer API, and Cloud Storage. 目前该项目还包括以下库:BigQuery API,BigQuery Data Transfer API和云存储。 It also has these external jars: axis-1.4.jar, commons-discovery-05.jar, jasxrpc-api-1.1.jar, and wsdl5j-1.6.3.jar 它还有这些外部罐子:axis-1.4.jar,commons-discovery-05.jar,jasxrpc-api-1.1.jar和wsdl5j-1.6.3.jar

What am I doing wrong? 我究竟做错了什么?

I was wrong in my original answer here: the com.google.appengine.tools is ok and indeed there is a tutorial using the approach you describe. 我在这里的原始答案错了: com.google.appengine.tools ,确实有一个使用您描述的方法的教程 That tutorial describes the dependencies required when using Maven or Gradle. 该教程描述了使用Maven或Gradle时所需的依赖关系。

You can also use Cloud Tools for Eclipse 's Libraries management feature to install the Cloud Storage client libraries into your app, but that uses a different set of classes. 您还可以使用Cloud Tools for Eclipse库管理功能将云存储客户端库安装到您的应用程序中,但它使用不同的类集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.NoClassDefFoundError:com / google / appengine / tools / cloudstorage / GcsFilename - java.lang.NoClassDefFoundError: com/google/appengine/tools/cloudstorage/GcsFilename 用于Eclipse控制台的Google Cloud Tools中的字符损坏 - Character corruption in the Google Cloud Tools for Eclipse Console 无法在 Eclipse 插件“Google Cloud Tools for Eclipse”中创建项目 - Failed to create project in Eclipse plugin "Google Cloud Tools for Eclipse" 为什么Eclipse的Google Cloud Tools插件会显示“未找到项目”? - Why does Google Cloud Tools Plugin for Eclipse say “No Projects Found”? 专案无法在Eclipse的Google云端工具上启动 - Project won't launch on Google Cloud Tools for Eclipse Google Cloud Dataproc中的Google JDBC驱动程序的ClassNotFoundException - ClassNotFoundException for Google JDBC Driver in google cloud dataproc 在 eclipse 中使用谷歌或工具 - Using google or-tools in eclipse Google Cloud Endpoints Framework - EndpointServlet ClassNotFoundException - Google Cloud Endpoints Framework - EndpointServlet ClassNotFoundException 在针对Eclipse的Google Cloud工具上运行Objectify时出现“ projectId必须与以下模式匹配”异常 - “projectId must match the following pattern” exception when running Objectify on Google Cloud tools for Eclipse ClassNotFoundException:谷歌云 SQL 与 MySQL/SocketFactory - ClassNotFoundException: Google Cloud SQL with MySQL/SocketFactory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM