Run configurations not working

Answered

Whenever I open a .java file and try to create a run configuration, I get this error: "Warning: Class '(my class)' not found in module '(my module)'". I am putting in the class that contains my main method (for example, "public class Dog" I would enter "Dog"), and the problem is on my other computer, too. I had solved it by just making a new project and copying the code from the .java file into it, but today when I reopened a project that was working the other day, I had the same problem. Any help would be appreciated.

Thanks

0
2 comments

Please share a sample project to reproduce. You can submit it with a ticket to support at https://intellij-support.jetbrains.com/hc/requests/new.

0
Avatar
Permanently deleted user

Thanks, but I figured it out. I had to specify the source and output in the Project Structure settings.

0

Please sign in to leave a comment.