/ opt / IBM / WebSphere / AppServer / java / bin / java:没有这样的文件或目录

时间:2016-01-25 11:54:19

标签: java linux websphere ibm-was

我正在运行python文件以在WebSphere中启动HTTP服务器但是突然它在一些错误的位置搜索java然后我停止了服务器并尝试启动startNode.sh shell脚本但它没有启动服务器并且给出了相同的错误它搜索java in的/ opt / IBM /的WebSphere /应用服务器/ JAVA / bin中/ JAVA。

之前我甚至在bash_profile中设置了java class-path。

当我尝试运行文件./startNode.sh或./startManager.sh时,它给出错误。

错误代码:

/opt/IBM/WebSphere/AppServer/bin/startNode.sh: line 151: /opt/IBM/WebSphere/AppServer/java/bin/java: No such file or directory.

如何指定路径,以便web-sphere服务器可以正确使用它。 提前谢谢。

1 个答案:

答案 0 :(得分:1)

WebSphere中的路径由managesdk命令管理。

startNode.sh脚本无法正常工作,似乎表明通过移动JDK或将脚本更改为指向其他位置来修改安装。