Is your Java runtime upto date? (the latest is version 7 update 6)
What does the error message say?
If you're trying to connect to a server, is your version the same as the server?
Did you actually but the game or are you trying to run a cracked version?