org.apache.felix.framework.cache.BundleArchive:无法创建存档目录

发布于 2024-10-04 02:23:59 字数 555 浏览 7 评论 0原文

谷歌搜索我发现当 Windows 无法运行 .bat
时会显示此错误 当我在工作区中运行 roo 命令时,我得到了这个信息。

操作系统-> Windows 7,32 位 jdk-> jdk1.6.0_22 袋鼠-> spring-roo-1.1.0.RELEASE

漏洞错误信息为:

ERROR: Unable to create system bundle directory.
ERROR: org.apache.felix.framework.cache.BundleArchive: Unable to create archive directory.

重复数百次。
我遵循了所有这些步骤,但无论如何我收到了错误。有谁知道为什么吗??

我读到了另一个类似的问题,该问题已从 OpenJDK 迁移到 JDK 1.6 得到解决。但我已经有 JDK 1.6

提前致谢

googling I gound that this error is shown when windows can't run a .bat
I'm getting this when I'm running roo comand in my workspace.

OS -> windows 7, 32 bits
jdk -> jdk1.6.0_22
roo -> spring-roo-1.1.0.RELEASE

The hole error message is:

ERROR: Unable to create system bundle directory.
ERROR: org.apache.felix.framework.cache.BundleArchive: Unable to create archive directory.

Repeated hundreds of times.
I followed all these steps, but anyway I'm getting the error. Does anybody know why??

I read another similar problem, which was solved moving from OpenJDK to JDK 1.6. But I have already JDK 1.6

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

灯下孤影 2024-10-11 02:23:59

我今天在 Windows 7 64 位上也遇到了同样的问题。花了一些时间解决了它。

  1. 转到%ROO_HOME%/ bin(对我来说ROO_HOME = C:\ Program Files \ springsource \ spring-roo-1.1.5.RELEASE)
  2. 右键单击Roo.bat并从弹出窗口中选择选项“以管理员身份运行”。
    - - - - - - - - - - - - - - - - - 或者 - - - - - - - - --------------
  3. 在“运行”框中(“开始”按钮弹出窗口中的最后一个选项),键入 cmd,
  4. 而不是按 Enter 键,而是使用 CTRL + SHIFT + ENTER。在弹出框中单击是,
  5. 将出现带有管理属性的命令提示符,输入 ROO 就会出现。
    (C:\Windows\System32\cmd.exe)

I also have same issue today on windows 7, 64 bit. after spending some time solved it.

  1. Goto %ROO_HOME%/bin ( for me ROO_HOME = C:\Program Files\springsource\spring-roo-1.1.5.RELEASE)
  2. Right Click Roo.bat and select option 'Run As administrator' from pop-up.
    ----------------------------------OR-----------------------------
  3. In Run box ( last option in Start button pop-up), type cmd
  4. Instead of hitting Enter, use CTRL + SHIFT + ENTER. Click yes on pop-up box
  5. Command prompt with Administrative Properties will come up, type ROO and it comes up.
    ( C:\Windows\System32\cmd.exe)
じее 2024-10-11 02:23:59

我也有同样的问题。我没有roo安装文件夹的适当权限。然后我改变了我的权利,一切正常。

I had the same problem. I did not have the aprropiate rights to the installation folder of roo. Then I changed my rights and everything worked fine.

思念绕指尖 2024-10-11 02:23:59

这可能是因为您以“普通”用户身份运行,但内部 Felix OSGI 容器默认情况下会尝试在工作目录中创建 felix-cache 目录。

有两种解决方案可能比简单地提升权限更好:

  1. 设置 org.osgi.framework.storage 系统属性(例如 -Dorg.osgi.framework.storage=C:\Users\MyUsername)
  2. 从不同的工作目录运行它,其中之一您有写入权限

It's probably because you are running as a 'normal' user yet the internal Felix OSGI container, by default, tries to create a felix-cache directory in the working directory.

Two solutions which are probably better than simply elevating your permissions:

  1. Set the org.osgi.framework.storage system property (e.g. -Dorg.osgi.framework.storage=C:\Users\MyUsername)
  2. Run it from a different working directory, one that you have write permissions for
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文