AX 2012 Security for functions developed

Hello,

I would like to access buttons developed. I think it has to be made to menuitem which is related with classes. The error message occurs when the button is clicked.

Error executing code: Action_test object does not have method ‘main’.

Stack trace

(C)\Classes\Action_test\main
(C)\Classes\FormFunctionButtonControl\Clicked

So I added main method in Action_test class but error still occurs.

How could I control fuctions developed?

Whats defination of your main method. It should be static and void.