how to run a java class

hello,

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,

Volker

0
3 comments

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

1
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

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?

1

Please sign in to leave a comment.