Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main method not found #566

Open
vix3m1 opened this issue Sep 7, 2024 · 2 comments
Open

Main method not found #566

vix3m1 opened this issue Sep 7, 2024 · 2 comments

Comments

@vix3m1
Copy link

vix3m1 commented Sep 7, 2024

yo, the app is great but i kept getting the main method is not found when i compile the code

@PranavPurwar
Copy link
Member

can you show the code in the file?

@ElianFabian
Copy link

ElianFabian commented Nov 28, 2024

I've also experienced the same issue.

Examples that work:

fun main() {
    println("Main")
}

class O
fun main() {
    println("Main")
}

class U

Examples that don't work:

fun main() {
    println("Main")
}

class A
fun main() {
    println("Main")
}

class E
fun main() {
    println("Main")
}

class I

It seems that if the class starts with A, E, or I when compiling it will say 'Main method not found', this also happens with other letters, like B, C, ... I didn't test them all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants