sbt / sbt-remote-control

Create and manage sbt process using unicorns and forks
Other
74 stars 14 forks source link

Forking sbt-server should allow some control over JAVA_HOME #298

Open jsuereth opened 9 years ago

jsuereth commented 9 years ago

some users do not want to use the PATH version of java to run sbt-server. We should allow specifying a JAVA_HOME so the forking which is done is done via some JAVA_HOME parameter.

dwijnand commented 9 years ago

Might be of related interest: https://github.com/paulp/sbt-extras/pull/95

jsuereth commented 9 years ago

@dwijnand Ironically, that's not the issue here, that won't even solve this problem :) The JDK is chosen before we even load .sbt configuration or are able to use the set command.... Still glad to see you fixing issues like that.

dwijnand commented 9 years ago

Setting javaHome is a lesser part of that fix, the more important part was prepending JAVA_HOME/bin / JDK_HOME/bin to PATH.

dwijnand commented 9 years ago

Setting javaHome actually broke sbt.ScriptMain too :(