how to run a java class


I want to run a java class into mps, that I created to test my DSL.

In this case the names class is: FinSetTest (see screenshot).

How can I run this class? Thanks in advance.

Kindly Regards,


Comment actions Permalink

Your class seem to fail to generate, so you should focus on fixing the generator, I think. Also the main method should be static.

Comment actions Permalink

Change public void main() as public static void main(). (Use <Alt+Insert> to quickly create psvm).  Then Right click the class FinSetTest node in sandbox model in ProjectPane and click Run.

Comment actions Permalink

I changed to public static void main() and then I clicked Run in ProjectPane, but there's still the message: Classname is empty

What am I doing wrong?


Please sign in to leave a comment.