当前位置: 首页 > 知识库问答 >
问题:

“无法获取应用程序服务。”在Mac上运行STS时

柳韬
2023-03-14

我试图在Mac上安装STS,但当我试图运行它时,我得到了这个错误:

> !SESSION 2015-07-14 12:46:41.954
> ----------------------------------------------- eclipse.buildId=3.7.0.201506290652-RELEASE-e45 java.version=1.6.0_65
> java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86_64,
> WS=cocoa, NL=en_US Framework arguments:  -product
> org.springsource.sts.ide -keyring /Users/X/.eclipse_keyring
> -showlocation Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.springsource.sts.ide -keyring
> /Users/X/.eclipse_keyring -showlocation
> 
> This is a continuation of log file
> /Users/X/Downloads/sts-bundle/STS.app/Contents/Eclipse/configuration/1436874402230.bak_1.log Created Time: 2015-07-14 12:46:46.045
> 
> !ENTRY org.eclipse.ecf.filetransfer 2 0 2015-07-14 12:46:46.045
> !MESSAGE Could not resolve module: org.eclipse.ecf.filetransfer [305] 
> Unresolved requirement: Import-Package: org.eclipse.core.runtime.jobs
>     -> Export-Package: org.eclipse.core.runtime.jobs; bundle-version="3.7.0.v20150330-2103";
> bundle-symbolic-name="org.eclipse.core.jobs"; version="0.0.0"
>        org.eclipse.core.jobs [146]
>          Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"
> 
> (...)
> 
> !ENTRY org.eclipse.jst.server.generic.ui 2 0 2015-07-14 12:46:46.063
> !MESSAGE Could not resolve module: org.eclipse.jst.server.generic.ui
> [543]   Unresolved requirement: Require-Bundle: org.eclipse.ui;
> bundle-version="[3.2.0,4.0.0)"
>     -> Bundle-SymbolicName: org.eclipse.ui; bundle-version="3.107.0.v20150507-1945"; singleton:="true"
>        org.eclipse.ui [785]
>          Unresolved requirement: Require-Bundle: org.eclipse.core.runtime; bundle-version="[3.2.0,4.0.0)"
>            -> Bundle-SymbolicName: org.eclipse.core.runtime; bundle-version="3.11.0.v20150405-1723"; singleton:="true"
>               org.eclipse.core.runtime [149]
>                 Unresolved requirement: Require-Bundle: org.eclipse.core.jobs; bundle-version="[3.2.0,4.0.0)";
> visibility:="reexport"
>                   -> Bundle-SymbolicName: org.eclipse.core.jobs; bundle-version="3.7.0.v20150330-2103"; singleton:="true"
>                      org.eclipse.core.jobs [146]
>                        Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"
> 
> 
> !ENTRY org.eclipse.osgi 4 0 2015-07-14 12:46:46.065 !MESSAGE
> Application error !STACK 1 java.lang.IllegalStateException: Unable to
> acquire application service. Ensure that the org.eclipse.core.runtime
> bundle is resolved and started (see config.ini).  at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:78)
>   at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
>   at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)     at
> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)  at
> org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)     at
> org.eclipse.equinox.launcher.Main.run(Main.java:1515)

>

  • OS X版本:Yosemite和10.9(我都试过了)
  • sts版本:3.7.0(在sts网页上提供的最新版本)
  • Java版本:

    java版本“1.6.0_32”OpenJDK运行时环境(IcedTea6 1.13.4)(RHEL-6.1.13.4.EL7_0-x86_64)OpenJDK 64位服务器VM(构建23.25-B01,混合模式)

  • 共有1个答案

    柯阳曦
    2023-03-14

    台词:

    Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))
    

    是说必须使用Java7(或8)

     类似资料:
    • 问题内容: 当我运行Spring MVC应用程序时,出现此异常,服务器无法启动。 请帮助我解决此问题。 异常StackTrace: 问题答案: 由于互联网连接不良,jar文件可能已损坏。尝试删除文件夹的内容。然后右键单击您的项目,选择“Maven” ,“ 更新项目” ,然后选中“ 强制更新快照/版本” 。如果您确定只有一个Jar文件有问题,则只需删除其文件夹。

    • 我已经安装了pgAdmin4,在我尝试安装新版本(我从v2.0升级到v2.1)之前,它运行良好。从那时起,我一直得到相同的输出。

    • > 我开发了一个javaFx应用程序,并在Mac的com.zenjava maven插件的帮助下创建了该应用程序的中间包。 bundle是用JDK:1.7.0_40.jdk创建的

    • 我遵循以下指南开始使用IBM Social Business ToolKit:https://www.ibmdw.net/social/getting-started-as-java-developer/ 尝试列出社区(/myapp.contextroot/GetMyCommunity.jsp),我得到了一个响应(application/javascript): 似乎我需要以某种方式配置JS运行时

    • 问题内容: 我正在尝试运行此项目-https://github.com/JumboInteractiveLimited/codetest 我已经下载了Docker工具箱,并执行了GitHub页面上提到的build和run命令,但是当我尝试访问http:localhost:8080时,该页面仍然不可用。 当我尝试再次执行运行时,Docker说 编辑 :澄清一下,我只有在第二次运行时才收到该错误。当我