cordova - JAVA HOME PATH correctly set in Environment but wrong when compiling via Node.js -


I have received this IU: 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"

However, my Java home is set to: < Pre> C: \ program files \ Java \ jdk1.7.0_51

with PATH

  c: \ program files \ java \ jdk1 .7.0_51  

Any recommendations?

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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -