I wrote this matlab code:

function [ n ] = SumTest( a, b )
n = a + b;

and deployed with MATLAB Builder NE. That create a class named MatLabTest with a method named SumTest. When I try to create a MatLabTest instance:

MatLabTest mt = new MatLabTest();

I get a TypeInitializationException with the messsage "The type initializer for MatLabTest threw an exception.". Can somebody hepl, thanks in advance.