Learning Java - How should I go about it?



I borrowed the book "Java - How to Program, 3e, Deitel & Deitel"
from my local library. But it didn't come with a CD. This book
is a tutorial for Java 2, using Java 2 SDK v1.2.1 with either
NetBeans dev. x2 2.1 or JBuilder 3 University Ed.

I couldn't find that old IDE software so I installed JDK 1.5
with netbeans from the Sun site.

The problem is that the very first program example in the Deitel
book now fails on me.

+ + + + + + +
public class Welcome1
{
public static void main(String args[])
{
System.out.println ("Welcome to java Mark");
}
}
+ + + + + + +
The last line in the next section gives the error I got from the
command line:
+ + + + + + +
// Directory of D:\_java\Deitel
// Welcome.java 302 bytes
// D:\_java\Deitel>java Welcome1.java
// Exception in thread "main" java.lang.NoClassDefFoundError:
Welcome1/java

+ + + + + + +

I've already programmed in other languages COBOL, Pascal, VB,
Java Script and have gone through C# without actually doing
anything in it.

Should I persevere with the Deitel book?

Is this initial problem I'm having with the java command line
not too important and should I just continue with the other
examples using the IDE?

The Deitel book looks a bit tedious. Can someone recommend a
book that covers all of java without spending too much time on
the simple features such as datatypes, operators and control
structures but nevertheless gives a comprehensive coverage of
advanced features; especially the cryptic object orientation.

Or, given that it's free, should I persevere with the Deitel
book?, if so - should I uninstall SDK 1.5 and install Java 2 SDK
1.2.2 (which I have)? If so - what IDE can I use for SDK 1.2.2?

Should I give up with java altogether and spend my time on C#
until I'm used to programming in the object oriented framework?
C# will surely be easier for me as the IDE, libraries, etc. are
all there.

PS: I wanted to learn java because (a) I'm told it's the
language used for Oracle forms (which is what I actually wanted
to use) and I thought it would be a bit daft trying to use
Oracle without first knowing java. (b) everyone expects me to be
able to use java anyway and it does look pretty useful.

PS: the email is fake anti-spam. Please reply here.

.



Relevant Pages

  • Re: Java-Rauschen (war: Re: Getter & Setter)
    ... also stimmst du mir zu dass Java ohne IDE schlecht nutzbar ist? ... Nun mal abgesehen dass man APIs nicht mehr lernt, sondern sich einfach auf Codecompletion verlässt und dabei Hilfsklassen vollkommen ignoriert, ... Oder wenn der Grad des Rauschen so unterschiedlich ist? ...
    (de.comp.lang.java)
  • Re: Java-Rauschen (war: Re: Getter & Setter)
    ... welche Perspektive hatten denn die Leute, die Java entworfen haben? ... Aber gehe ich recht in der Annahme dass du dann sagst, dass Java erst durch eine IDE "richtig gut" wird?... ... Ich sehe es allerdings für eine textbasierte Programmiersprache als Nachteil an, wenn sie aufgrund der "Umständlichkeit" der Sprache ohne IDE kaum nutzbar ist. ...
    (de.comp.lang.java)
  • Java-Rauschen (war: Re: Getter & Setter)
    ... aber bei HTML ist nicht so sehr der Source als viel mehr das was im Browser angezeigt wird wichtig. ... Ich finde, eine interessantere Frage ist, warum man ueberhaupt gegen eine IDE ist. ... Nur hängt das mit einer bestimmten Menge an Code zusammen und die erreicht man bei Java schneller als bei zum Beispiel Ruby. ... Ich sehe es allerdings für eine textbasierte Programmiersprache als Nachteil an, wenn sie aufgrund der "Umständlichkeit" der Sprache ohne IDE kaum nutzbar ist. ...
    (de.comp.lang.java)
  • Re: Java-Rauschen (war: Re: Getter & Setter)
    ... Programmieren meinst, dass die IDE doch eh die ganze Zeit läuft, dann ... Eclipse ... Wenn du jetzt sagen würdest ich bin Java gegenüber Voreingenommen ... Groovy Java *braucht*, stört dich hingegen nicht. ...
    (de.comp.lang.java)
  • Re: recommendations or a java development environment
    ... does anyone have any recommendations for a java ... BemusedbyQM> development environment? ... to become lazy and let an IDE flag your errors, ...
    (comp.lang.java.help)