Run java module from Android Studio?

I added a Java module to my project and tried to run it using the configuration. I chose the main class. When I try to run, I get this exception;

Exception in thread "main" java.lang.ClassNotFoundException: Main 

I also installed the IntellijIDEA 12 community version, there is no problem launching a java module with this installation.

So what should I do to run the java module from Android Studio?

Note. I want to do this because my project is a client-server application. I want to treat them as with the same IDE. I use Android for the client and Java for the server.

+6
source share

Source: https://habr.com/ru/post/946206/


All Articles