Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

So I am trying to learn Java, but for some reason when ever I try to run my program in Eclipse I get this:

Eclipse Error Window

As you can see, the program is very simple (the first program I am supposed to write), so I don't know what's going on!

I haven't been able to find the log in the workspace/.metadata/.log folder as specified on the eclipse wiki and nothing appears when I launch eclipse from the terminal.

If it matters at all I installed eclipse from the archive downloaded from http://developer.android.com/sdk/index.html because I was originally going for learning how to make Android apps (then I figured I ought to learn Java first. :D)

Anyways, does anyone know what is causing this error and how to fix it?

Thanks!

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Well, I just realized after much deliberation and reading that facepalm I had forgot the public static void main() { }!

Wow. Anyways, it's now working and I am marking this as answered.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.