开发者

JBOSS 5.1 does not work in CentOS 4.8

开发者 https://www.devze.com 2023-03-25 17:31 出处:网络
For some reason I need to use CentOS 4.8. I installed Java 1.6.26 and JBOSS 5.1 on CentOS 4.8. However, When I use ./run.sh to run JBOSS I get the following message:

For some reason I need to use CentOS 4.8.

I installed Java 1.6.26 and JBOSS 5.1 on CentOS 4.8. However, When I use ./run.sh to run JBOSS I get the following message:

/bin/开发者_开发百科run.jaring required file: /opt/java/jboss

where /opt/java/jboss is the link to the JBOSS installation directory. Nothing else happens and there is no log.

I tried the search the error message, but got no hints.


Problem solved.

The problem was because I copied a '.sh' file from another linux host via a windows machine. During the copy (or transfer), a '\r' character is inserted at the end of each line of the .sh file. And this .sh file set the path variable in linux. Because of the '\r', the path is not set correctly.

After I remove the '\r' from the end of the lines in .sh file, everything works.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号