I am executing below commands from jsp(eg:shell.jsp) and I have set up for tomcat server.
and i am running in MAC machine/mac book. 

```
<%@ page import="java.util.*,java.io.*" %>
<%@ page import="java.lang.Runtime" %>

String unixCommand = "sh /Users/admin/interface.sh";
Runtime rt = Runtime.getRuntime();
rt.exec(unixCommand);

```

I am getting below error

```
An error occurred at line: 9 in the jsp file: /file_upload_download/shell.jsp
**The method exec(String) is undefined for the type Runtime**
   String unixCommand = "sh /Users/admin/interface.sh";
      Runtime rt = Runtime.getRuntime();

```