在Eclipse上安装Google Cloud Platform插件时出现“没有这样的文件或目录”错误

时间:2018-04-21 02:12:27

标签: java eclipse eclipse-plugin google-cloud-platform

我正在尝试为我的Google App Engine项目添加Java 8支持。为此,我不得不更新Eclipse,从而安装最新的Eclipse Google Cloud Platform插件。虽然插件已成功安装SDK,但仍需要安装其他工具。当它这样做时,输出:

[Installing Google Cloud SDK app extensions for Java]


Your current Cloud SDK version is: 198.0.0
Installing components from version: 198.0.0

+----------------------------------------------------+
|        These components will be installed.         |
+------------------------------+---------+-----------+
|             Name             | Version |    Size   |
+------------------------------+---------+-----------+
| gRPC python library          |   1.9.1 |   7.3 MiB |
| gRPC python library          |         |           |
| gcloud app Java Extensions   |  1.9.63 | 118.9 MiB |
| gcloud app Python Extensions |  1.9.69 |   6.1 MiB |
+------------------------------+---------+-----------+

For the latest full release notes, please visit:
  https://cloud.google.com/sdk/release_notes

#============================================================#
#= Creating update staging area                             =#
#============================================================#
#= Installing: gRPC python library                          =#
#============================================================#
#= Installing: gRPC python library                          =#
#============================================================#
#= Installing: gcloud app Java Extensions                   =#
#============================================================#
ERROR: gcloud crashed (IOError): [Errno 2] No such file or directory:  u'C:\\Users\\reddingBobulus\\AppData\\Local\\google-cloud-tools-java\\managed-cloud-sdk\\LATEST\\google-cloud-sdk.staging\\platform\\google_appengine\\google\\appengine\\tools\\java\\jetty93\\jetty-distribution\\lib\\apache-jsp\\org.eclipse.jetty.apache-jsp-9.3.18.v20170406-nolog.jar'

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics

我的猜测是Windows阻止安装程序安装Jetty,因为文件必须放在暂存区域,但最大Windows文件长度会阻止创建这些文件。这来自于我自己尝试安装Jetty,但由于最大文件长度我无法将Jar重命名为正确的名称。但是,这意味着我需要编辑Windows以删除该“功能”或将我已经用完的硬盘的一部分分区到Linux才能正常工作。还有什么我可以做的吗?谢谢。

1 个答案:

答案 0 :(得分:1)

该路径似乎是265个字符(包括尾随\0),大于maximum Windows path limits。但显然这个长度限制可以从Windows 10 by setting a registry key and rebooting开始删除。