c# - Start-Process with java.exe fails after java update -


we have virtual server running windows server 2012 r2. on friday version of java updated 1.8.0_27 1.8.0_40. far know, change made.

since time, can run java directly command line or in batch files, working powershell scripts use start-process start java, e.g. $process = start-process -filepath c:\programdata\oracle\java\javapath\java.exe -argumentlist $report_args -passthru -wait give error "start-process : command cannot run because system cannot find information required." java executable started , finishes task correctly, in meantime powershell script has gone down path reporting error.

system.diagnostics.process.start (in c#) reporting failure when starting java.

any ideas on things message "start-process : command cannot run because system cannot find information required."?


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -