Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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?


share|improve this question
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

Your Answer


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.