eclipse报错处理: java.lang.IllegalStateException: The platform metadata area could not be written...

Eclipse报错:Root exception: java.lang.IllegalStateException: The platform metadata area could not be written:

以下是原因:

由于重装或变更盘符等原因,造成你的 “My Documents” 文件夹位于不同的驱动盘下。
而安装程序会假设它位于C盘并且尝试在那里打开工作区。

解决方法:

为Eclipse创建一个新的快捷方式(或修改现有的快捷方式)并添加一个-data参数以及工作区文件夹的路径(默认情况下在您的文档下)。 在我的系统上它设置如下:
"C\Users\Lance\AppData\Local\Aptana Studio 2.0\AptanaStudio.exe" -data "E:\Documents\Aptana Studio Workspace"
查看错误日志:
每次尝试启动程序时,都会在程序的configuration文件夹中写入日志文件。 日志文件看起来像是以某种时间戳(1259818956579.log)命名的。 在日志文件中,有一个带有-data解决方案的详细错误消息:
Root exception: java.lang.IllegalStateException: The platform metadata area could not be written: C:\ Users \ Lance \ My Documents \ Aptana Studio Workspace.metadata。 默认情况下,启动时将其内容写入当前工作目录。 使用-data参数为其指定不同的内容区域。

原答案:

I just ran into this same issue. It’s caused by having your “My Documents” folder mapped to a different drive. The installer and program assume it’s located on the C:\ drive and attempt to create or open the workspace there.
To fix the issue:
Create a new shortcut for Aptana (or modify the existing one) and add a -data parameter with the path to your workspace folder (by default under your documents). On my system it is setup like so:
“C:\Users\Lance\AppData\Local\Aptana Studio 2.0\AptanaStudio.exe” -data “E:\Documents\Aptana Studio Workspace”
Viewing the error log:
A log file is written in the /configuration/ folder of the program each time you attempt to launch the program. The log files look like they are named after some kind of timestamp (1259818956579.log). Inside the log file there is a detailed error message with the -data solution:
Root exception: java.lang.IllegalStateException: The platform metadata area could not be written: C:\Users\Lance\My Documents\Aptana Studio Workspace.metadata. By default the platform writes its content under the current working directory when the platform is launched. Use the -data parameter to specify a different content area for the platform.

转载于:https://www.cnblogs.com/xuejianbest/p/10285285.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值