Error Caused by: java.lang.ClassNotFoundException
<p>I am having some problem to Run my application. I followed the instructions from <a href="http://www.vogella.de/articles/AndroidLocationAPI/article.html#sourcecode" rel="nofollow">http://www.vogella.de/articles/AndroidLocationAPI/article.html#sourcecode</a></p>

<p>This was the Error that I get when compiling: </p>

<p>Caused by: java.lang.ClassNotFoundException: de.vogella.android.locationapi.maps.ShowMap in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/de.vogella.android.locationapi.maps-2.apk]</p>

<p>Below is my Code:</p>

<pre><code>For ShowLocation.java
import android.content.Context
import android.location.Location
import android.location.LocationListener
import android.location.LocationManager
import android.os.Bundle
import com.google.android.maps.GeoPoint
import com.google.android.maps.MapActivity
import com.google.android.maps.MapController
import com.google.android.maps.MapView
import de.vogella.android.locationapi.maps.R
public class ShowLocation extends MapActivity {
    private MapController mapController;
    private MapView mapView;
    private LocationManager locationManager;

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.main); // bind the layout to the activity

        // create a map view
        //RelativeLayout linearLayout = (RelativeLayout) findViewById(R.id.mainlayout);
        mapView = (MapView) findViewById(R.id.mapview);
        mapView.setBuiltInZoomControls(true);
        mapView.setStreetView(true);
        mapController = mapView.getController();
        mapController.setZoom(14); // Zoon 1 is world view
        locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
        locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0,
                0, new GeoUpdateHandler());
    }

    @Override
    protected boolean isRouteDisplayed() {
        return false;
    }

    public class GeoUpdateHandler implements LocationListener {

        @Override
        public void onLocationChanged(Location location) {
            int lat = (int) (location.getLatitude() * 1E6);
            int lng = (int) (location.getLongitude() * 1E6);
            GeoPoint point = new GeoPoint(lat, lng);
            mapController.animateTo(point); //  mapController.setCenter(point);
        }

        @Override
        public void onProviderDisabled(String provider) {
        }

        @Override
        public void onProviderEnabled(String provider) {
        }

        @Override
        public void onStatusChanged(String provider, int status, Bundle extras) {
        }
    }
}
</code></pre>

<p>And when i trying to compiling i get these error:</p>

<pre><code>12-09 02:42:06.976: D/AndroidRuntime(12199): Shutting down VM
12-09 02:42:06.976: W/dalvikvm(12199): threadid=1: thread exiting with uncaught exception (group=0x40015560)
12-09 02:42:07.106: E/AndroidRuntime(12199): FATAL EXCEPTION: main
12-09 02:42:07.106: E/AndroidRuntime(12199): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{de.vogella.android.locationapi.maps/de.vogella.android.locationapi.maps.ShowMap}: java.lang.ClassNotFoundException: de.vogella.android.locationapi.maps.ShowMap in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/de.vogella.android.locationapi.maps-2.apk]
12-09 02:42:07.106: E/AndroidRuntime(12199):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at android.app.ActivityThread.access$1500(ActivityThread.java:117)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at android.os.Handler.dispatchMessage(Handler.java:99)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at android.os.Looper.loop(Looper.java:130)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at android.app.ActivityThread.main(ActivityThread.java:3683)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at java.lang.reflect.Method.invokeNative(Native Method)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at java.lang.reflect.Method.invoke(Method.java:507)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:861)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:619)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at dalvik.system.NativeStart.main(Native Method)
12-09 02:42:07.106: E/AndroidRuntime(12199): Caused by: java.lang.ClassNotFoundException: de.vogella.android.locationapi.maps.ShowMap in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/de.vogella.android.locationapi.maps-2.apk]
12-09 02:42:07.106: E/AndroidRuntime(12199):    at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
12-09 02:42:07.106: E/AndroidRuntime(12199):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
12-09 02:42:07.106: E/AndroidRuntime(12199):    ... 11 more
</code></pre>
