Running an Actor model program on Intellij is a little bit tricky.
Today I go to know, how to initialize an actor in Scala and finally ran the program in IntelliJ with run configuration as the program doesn't have any main method to run.
Let's have a actor model in Intellij:
Program Main Counter Class:
And finally to run the program, go to 'Run' from Menu then Select Edit Configuration and Add new 'Application' in which give name of the program of your choice, main class should be always 'akka.Main' and in Program Arguments select or write package.classname like in our case it is Week2.CounterMain, press Ok button.
No comments:
Post a Comment