Are you sure you're using the right credentials for your login? If you've migrated to Mojang.com at any point, you should be using your email as your login instead of your username.
As for the 'Java Error,' please be specific, as there are multiple Java Errors that currently exist for Minecraft.