many times when you are not running a
java program directly , like for example using an
IDE .
Sometimes you might not see any activity in the IDE , but the process might be running in the background.Try using an process explorer to see if the program is running or not.If you find the program running , then kill the program and then run your server again.