Hi, I just started developing for Android and followed the Hello,
Android tutorials on the Resources tab from Android.com. I followed it
step for step and have been going in circles trying to figure out
what's wrong. Here's my code:

package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid extends Activity {
    /** Called when the activity is first created.*/
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TextView tv = new TextView (this);
        tv.setText ("Hello, Android");
        setContentView (tv);
    }
}

and when I run it I get a class not found error in the console and the
applet says it is not initialized.


java.lang.ClassNotFoundException: .class
        at sun.applet.AppletClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.applet.AppletClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.applet.AppletClassLoader.loadCode(Unknown Source)
        at sun.applet.AppletPanel.createApplet(Unknown Source)
        at sun.applet.AppletPanel.runLoader(Unknown Source)
        at sun.applet.AppletPanel.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
load: class .class not found.

I can post the Manifest if it is needed but I hope it's a simple
problem. I already created and recreated an AVD and none of the
tutorials are running either so I think it must be something with my
setup. I am completely stumped. Any help would be great! thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to