-1

I want to call a c executable application from my java code. I found a solution as I can use :

String[] arg = new String[] {"cmd","/c","add"};
Process p = Runtime.getRuntime().exec(arg);

But this is only working on the windows environment.

I want to run it on solaris environment.

I searched on google but I could not find the answer.

Mat
  • 202,337
  • 40
  • 393
  • 406
Pratik
  • 109
  • 1
  • 5
  • 14

1 Answers1

1

there is no cmd on Solaris. just use the full path to your add binary.

Uku Loskit
  • 40,868
  • 9
  • 92
  • 93