• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Help! I'm trying to learn Java, but I'm stuck at first chapter

Wolfpuppy

Lurker
So, I've decided to start learning the basics of Java in hopes of at some point create my first Android App.

I've looked into many tutorials and guides and they all start the same - creating a class that should output the phrase "Hello World!"

I'm trying to do just that, following all the steps from installing the right programs and setting everything up, but when I've reached the point of running my first class, I get this error.

9b1db8621a870ba2dbb0e54ba65f85ef.png


I don't even want to continue the tutorial, if I can't even get the first chapter done right. So here I am, requesting assistance :)

What should I do?

Wolfie
 
Hi, i am found this, try it:

A: Change workspace

B:
1. Close Eclipse.
2. Delete .metaData folder in your workspace dir.
3. Open Eclipse and import your projects from your workspace to Eclipse (do not copy because they are already in it).
 
What's the link to the tutorial?


What it looks like you are doing is making an android app. As far as i know, that code alone will not work on an android.

What you should do for learning java (not for android) is create a Java Project, not an android project. I just made a Java project in the same eclipse adt, and it works fine for me.

22995694a991e83d680590677f52f7c2.png
 
What's the link to the tutorial?


What it looks like you are doing is making an android app. As far as i know, that code alone will not work on an android.

What you should do for learning java (not for android) is create a Java Project, not an android project. I just made a Java project in the same eclipse adt, and it works fine for me.

22995694a991e83d680590677f52f7c2.png

I tried, now it just shows this:

bf935b0f82335defc46e479f6a1422a9.png
 
Back
Top Bottom