当我尝试安装 GlassFish 或创建域时,显示 "The system cannot find the path specified"(系统找不到所指定的路径)错误消息。为什么?

尝试使用

ant -f setup.xml

安装 GlassFish 应用服务器时,有些人遇到了下列错误消息:

create.domain:
[exec] The system cannot find the path specified.

使用下列命令尝试手动创建域时会遇到同样的错误:

%asadmin create-domain

解决方案:只需正确设置您的

JAVA_HOME
环境变量并保持其不变。


英文