You have to add appcompat library as a library project not just import the jar.
Import appcompat into your IDE from android_sdk_dir/extras/android/support/v7/appcompat
.
Add it to your project as a library project. (Project -> Properties -> Android -> Library -> Add.. and select appcompat).
Don't forget to change the application theme to Theme.AppCompat
.