Skip to content

Cannot run Main #9

Description

@Anzo52

Name

Anzo52

Describe your Issue

After compiling, the following happens when attempting to run Main:

$ java Main
Error: Could not find or load main class Main
Caused by: java.lang.NoClassDefFoundError: Main/Main (wrong name: Main)

Maybe an issue with directory Main or with package declaration in Main.java?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions