1

I'm trying to run JBoss with sudo under certain configuration. I type: sudo jboss config. And get the following result: path-to-jboss/bin/run.sh: 255: java: not found

I think it could be a JVM installation issue, but not sure.

tshepang
  • 12,111
  • 21
  • 91
  • 136

1 Answers1

1

It looks like sudo is changing your $PATH, so that the java executable can no longer be found. See this question for some possible reasons why.

Community
  • 1
  • 1
bobmcn
  • 1,027
  • 9
  • 23
  • 2
    I mean, this is not the more appropriate approach, but it works. When you try to run jboss with sudo and you get that problem. You can add this to your run.sh (check jboss-path/bin/run.sh) and force JAVA=path-to-installed-jdk instead of asking for JAVA_HOME value. Thanks anyway bob. –  Mar 27 '12 at 14:15