• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.IOException: Cannot run program ""C:/Documents": CreateProcess error=2,cannot find file  RSS feed

 
Shantanu Nandan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Catch is executing
java.io.IOException: Cannot run program ""C:/Documents": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at download.main(download.java:31)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 5 more
Sucssesfull Execution


Hi, i am new to java and trying to download a Microsoft Office file but i am getting the avove mentioned exception. Please tell me where and what is the mistake and how to solve it
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read and implement eveyrthing that's talked about in this article.
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I shall edit your post to shorten the long lines, and you can see how it si done
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!