executing runtime.getruntime in java is not creating json file -


i using:

    try{         process p = runtime.getruntime().exec("/home/desktop/crt_json);         p.waitfor();      } catch (exception ex) {     ex.printstacktrace();     system.out.println("i caught: " + ex);     } 

to run c++ file named crt_json creates json file. when run through terminal working when run through java code json file not being created. know fact program crt_json being executed beacuse couple of other things , it's doing every single 1 of them except creating json file. know if there problem creating json files when executing c++ file runtime or something?

the c file being created in "current folder" , current folder in crazy directory changed code force in path of choosing.


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -