TypeError: c is undefined Datatables

I am trying to view a json response using DataTables library on a jsp in spring MVC. The json response is returned from the controller but i keep getting this error.

I can’t figure out what went wrong.

jsp pag:e

<script type="text/javascript" src="<c:url value="/js/show_employees.js"/>"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-1.12.4.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.15/js/jquery.dataTables.min.js"></script>
<table id="example" class="table table-bordered table-hover" cellspacing="0" width="100%">
<thead>
<tr>
    <th>Id</th>
    <th>Task Name</th>
    <th>Task Id</th>
    <th>Status</th>
    <th>Number Of Hours</th>
    <th>Project Id</th>
    <th>Employee Id</th>
</tr>
</thead>
</table>

js file:

$(document).ready(function() {
    $('#example').DataTable( {
        "processing": true,
        "serverSide": true,
        "ajax":{

            url: "http://localhost:8080/pms-web/generate",
            dataSrc: "Data",
            dataType: "json",
            type: "POST"
        }
    } );
    }
);