gpt4 book ai didi

java - ServiceMix无法启动

转载 作者:行者123 更新时间:2023-11-30 02:59:18 24 4
gpt4 key购买 nike

我的 serviceMix 无法启动,我只是试图停止它。/stop then./start

当我这样做时./client:

client: JAVA_HOME not set; results may vary
Logging in as smx
Failed to get the session.

我的 JAVA_HOME 设置正确。

当我这样做时./status

karaf: JAVA_HOME not set; results may vary
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Not Running ...

当我这样做时./停止

karaf: JAVA_HOME not set; results may vary
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Can't connect to the container. The container is not running.

在我停止之前它运行正常。

感谢您的帮助

最佳答案

尝试在 servicemix 的 bin/setenv 文件中配置 JAVA_HOME 设置。

在该文件中,您将找到如下所示的部分。尝试在此处设置 JAVA_HOME。

# general settings which should be applied for all scripts go here; please keep in mind that it is possible that scripts might be executed more than once, e.g. in example of the start script where the start script is executed first and the karaf script afterwards.

# The following section shows the possible configuration options for the default karaf scripts

# export JAVA_HOME # Location of Java installation

关于java - ServiceMix无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36360671/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com