cancel
Showing results for 
Search instead for 
Did you mean: 

Java.io.IOException: Cannot run program "sh"

New Contributor

Java.io.IOException: Cannot run program "sh"

Apologies if this is posted somewhere, but I cannot find the answer.

I just installed on Ubuntu 14.04 using Oracle Java7.

I am trying to generate Axis 2 artifacts for a WSDL. I created the project but when I click "generate" I always get:

Java.io.IOException: Cannot run program "sh"

I don't see anywhere to set or configure the shell path?

TIA!
4 REPLIES 4
Community Hero

Re: Java.io.IOException: Cannot run program "sh"

Have you checked the preferences for axix2 path?

Other wise, if you have axis2 downloaded, you may directly run it from AXIS2_HOME/bin


Regards,
Rao.
New Contributor

Re: Java.io.IOException: Cannot run program "sh"

Thanks but I have double checked and axis path is correct. But its the shell itself - sh - that java can't find and no apparent way to add a path to that.
Community Hero

Re: Java.io.IOException: Cannot run program "sh"

Have you tried the altnative mentioned?


Regards,
Rao.
Highlighted
Community Hero

Re: Java.io.IOException: Cannot run program "sh"

Once you set the AXIS2_HOME in Preferences->Tools, you should be able to generate without any issue. Please see the attachment.


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Join the exciting event
SeptemberHubBub
Top Kudoed Authors
Join the September Hub-bub to show off, learn and win