I need to start a server using bash
, so I had created an UNIX shell , but I am not able to execute it with Java from Eclipse.
I tried the following code which doesn't work :
Process proc = Runtime.getRuntime().exec(./startServer);
Here is content of the startServer
file :
#!/bin/bash
cd /Users/sujitsoni/Documents/bet/client
npm start