cordova - JAVA HOME PATH correctly set in Environment but wrong when compiling via Node.js -
I have received this IU: However, my Java home is set to: < Pre> with PATH Any recommendations? is not on com.sun.tools.javac.Main square path. OpsJava_Home does not talk with JDK It is currently set to "C: \ Program Files \ Java \ jre7"
C: \ program files \ Java \ jdk1.7.0_51
c: \ program files \ java \ jdk1 .7.0_51
When node.js generate a fork environment, then copy it to your user's environment variable You will need to do it manually
You will need to get JAVA_HOME from process.env and set it to your exec () call. Something like this should be done:
var config = {env: process.env}; Exec ('javacmd', config, function () {console.log (logic);});
Or if you want to become more clear, you can only remove the required variable ( JAVA_HOME
, etc.) from <0> process.env
For more information see:
Comments
Post a Comment