#cannot find main class

12 messages · Page 1 of 1 (latest)

quasi bone
#

i wrote a small snippet of code but whenever I try to debug it, it keeps showing "cannot find main class." How do i resolve this issue?

winter patioBOT
#

This post has been reserved for your question.

Hey @quasi bone! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

inland venture
#

well, do you have a main class

#

what's the snippet of code you wrote

silver chasm
#

You sure the class is public and has a public and static method called main?

public static void main(String[] args){}

#

Is it compiled by maven or cmd line?

quasi bone
#

the imports weren't downloaded

#

i downloade dthem

#

now it works

#

thanks tho!!!

winter patioBOT
# quasi bone thanks tho!!!

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.