How long did client run for until this happened?
Was it getting slower or less responsible?
Were you entering new regions often or staying in crowded places (lots of players/npcs)?
Before this happens again, go to your control panel, select java.
Something like this should open:
Select Show console, and apply the changes.
Then once the crash happens, press m and g to print memory usage and then copy the contents of console here.