• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

newbie needs tutorials on java

 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
needs tutorial on java for a beginner.
 
chander shivdasani
Ranch Hand
Posts: 206
Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Buy HeadFirst Java by Kathy And Sierra. Good book for the newbies.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All you really need is this !
 
arulk pillai
Author
Ranch Hand
Posts: 3388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this in addition to other resources suggested http://www.javapassion.com/
 
marten kay
Ranch Hand
Posts: 188
Java jQuery Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Chander, the Head First Java book is good, as is HF OO Analysis and Design.

I would also recommend Murach's Java SE6, this is very well structured and comprehensive. It is in a more tradition style to the Head First series so it depends on what you prefer.

I would also recommend Joshua Bloch's Effective Java after you have done a bit of programming. I am new to Java and OO, and now that I have a few skills it is to Joshua's book that I regularly return.
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh, you guys are wonderful, am going to read all and get those books.

already a friend send me THINKING IN JAVA BY BRUCE ECKEL and i love it, very explanatory.

and tutorial on java but i can't open the file
two days ago, i started TEACH YOURSELF JAVA 1.1 PROGRAMMING IN 24HRS. (docs.rinet.ru/j11/

i like this too but i don't know if it's outdated. but from the lesson, i was able to know what java is.
 
ruban raj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For new java beginner ,HeadFirst Java by Kathy And Sierra is a good book.so better go with head first.Really it is interesting book to learn java..


Regards,

Vasiammal.p
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANKs, please can anyone help with the lateset version of java developer kit(jdk) needs to install it on my system in other to start writing program.
My Operating system is window sx unlimited.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Downloads here; look for what they call 6 update 7.
There is a link to the installation instructions (if you haven't found it yet) in this "problems" page. Be sure to record where you install the Java, because you need that information for setting your PATH.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by felicia adedotun:
TEACH YOURSELF JAVA 1.1 PROGRAMMING IN 24HRS.


Not only outdated, but unbelieveably bad, with serious technical errors on nearly every page. That's one to avoid.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't like the teach yourself Java series because they put everything into the main method (so unfortunately does the Java Tutorial) which means you don't see how objects are created and used very much. The more recent editions have fewer of the errors in that EF-H mentioned.
 
Jamess Davis
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this website

http://www.javabat.com/

lets you actually do java and corrects you. Pretty good study work
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have been finding it difficult to read my java because i have been finding it difficult to download the following
http://users.dls.net/~bbello/tools

a friend sent that link to me.

i was able to run and install the TIJ STUFF but could not run the java tutorial (it says please insert the multi-volume set and click ok to continue) what does this means

And the TXPENG520 GIVES( error reading setup initialization file)

please, needs urgent response
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://users.dls.net/~bbello/tools/txpeng520.exe

(This program cannot be run in DOS mode) what can i do to run it
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know. What is it? Most of us have never heard if it.
 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like it's TextPad 5.20, the English version. Or actually its installer. You need Windows for it.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Rob. I have heard of TextPad. What would you use if you are still using DOS?
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yep,it's textpad, i was asked to installed it and the jdk so i can be able to write and run programs

or can i still keep using my notepad, i used it to write my "HelloWorldApp" that is my first application and it was ok.
 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Notepad perfectly. TextPad only has the advantage of syntax highlighting, automatic indentation and support for compiling with just a keypress.

You could try Notepad++ (which is free, unlike TextPad) instead of Notepad for those benefits, but it's not necessary.


Campbell: for DOS I'd use EDIT
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rob Prime:
You could try Notepad++
Agree about that, Rob. Notepad++ is a lovely application. If you compare NotePad++ and NotePad (which despite their similar names are unrelated to each other) you will never want to use plain NotePad again. There's also a thing called Notepad2 which I think is closely related to Notepad++.
Or you could try EDIT on DOS, as Rob suggests.
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh thanks, Is Notepad++ and notepad2 not the same? i used notepad2 for my HelloWorldApp.

i have been a member of javaranch forum since 2006 and that was because i wanted to have a knowledge of java but ever since i registered, i had never been utilising this forum until nowwwwwwwwwww.

you guys in this forum are doing a great job, well done to everybody, you are really making my java class very interesting
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome. Notepad2 and Notepad++ both use the same underlying logic (as far as I remember); they are both very nice for programming.
 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Campbell Ritchie:
Or you could try EDIT on DOS, as Rob suggests.

But only if your environment does not allow any window based editors. EDIT is about as basic as possible. It doesn't even support word wrap!
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Plug-in 1.6.0_07
Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\FELICIA


----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>

i guess, i sucessfully downloaded JDK. (java Console) does it really looks like this. Does that mean i can run java program sucessfully with this.

What did the aplhabet represents?
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The alphabet represent the various options with whichever application you are using at present. You may have to use -c rather than c.
Yes, you should be able to run a Java application from that command-line; you navigate to the folder where your simple .java file lives, then say

javac MyFile.java

then

java MyFile

Try it with a HelloWorld.
But it won't work when you get round to GUIs; I don't think they will work on a text-only computer.
[ October 11, 2008: Message edited by: Campbell Ritchie ]
 
Harshit Rastogi
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can check this link also , a very thorough explanation giveen for each concept in javaJava Concepts
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
while trying to run my "HelloWorldApp", thsi is the result i got
C:\java>java HelloWorldApp
Exception in thread"main" java.lang.NoClassDefFoundError:HelloWorldApp
used by:java.lang.ClassNotFoundException:HelloWorldApp
at java.net.URLClassLoader$1.run(Unknown Source)

'javac' is not recognized as an internal or external command, operable program or batch file. please, what can i do to run my first application successfully?

or is it the JAVA CONSOLE that i have on my OP.

How do i know if i've downloaded the jdk version or JRE?
quick response, please
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To the Java Tutorials! That "common problems" page tells you what to do if you get an error that "javac is not recognized . . ."

When you get to the bit about setting PATH permanently, ignore the bits about "optional" and set your PATH permanently, at least until you download a new version of Java. The NoClassDefFoundError means that the "java.exe" program has started running and not found a .class file. You usually get those two errors in the reverse order from what you reported.

You will hear about updating your CLASSPATH; that is not necessary at this stage.
 
Jacob Steingart
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In terms of a text editor, try jGrasp (www.jgrasp.org). It gives you the benefits of having a compile button (love that thing!), but it also gives you the benefits of using a text editor, i.e. you learn the language, not your IDE. I started off with jGrasp, and I still use it. Awesome program.

P.S. It is Java based, thus platform independent. Also ridiculously easy to set up, and lightweight. Good Java-ing!

For tutorials, I love Head First Java, and still keep it with me whenever I write code .
[ October 12, 2008: Message edited by: Jacob Steingart ]
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you get to the bit about setting PATH permanently, ignore the bits about "optional" and set your PATH permanently, at least until you download a new version of Java. The NoClassDefFoundError means that the "java.exe" program has started running and not found a .class file. You usually get those two errors in the reverse order from what you reported.

You will hear about updating your CLASSPATH; that is not necessary at this stage.


i read it and understood it but am having problem changing anything or adding in my systen-advance-environment variables. just discoved that when i was trying to type the path. some months ago, i changed my hard disk because the former one was corrupted with spyware and i think, the hard disk i got has user/adminstrator someting that can't make me do any change in control panel.especially in the SYSTEM.

please, fellow javaites, what step can i take. i want to start java at the foundation so i won't miss out or do you advise i continue reading the theory for now rather than wasting time on writing my first application?
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
am really enjoying my java
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done and we are pleased to be able to help.
Sorry nobody answered your last question; you ought to read the theory, discuss it with people more experiences (maybe here) and run tiny applications, all three from the beginning.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15482
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The java console is only a window presented by the Java plug-in in your browser, for displaying log messages from applets that run in your browser. You do not normally use the java console for compiling or running Java programs.

Just use the Windows command prompt.
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks guy
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks guy
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\FELICIA>cd C:\java

C:\java>dir
Volume in drive C has no label.
Volume Serial Number is E440-A14D

Directory of C:\java

11/02/2008 07:13 PM <DIR> .
11/02/2008 07:13 PM <DIR> ..
10/12/2008 02:48 AM 271 HelloWorldApp.java
1 File(s) 271 bytes
2 Dir(s) 13,404,250,112 bytes free

C:\java>C:\Program Files\java
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\java>C:\Program Files\java\jre 1.6.0_0.7\bin\javaw.exe
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\java>cd C:\Program files\java\jre 1.6.0_07\bin\javaw.exe
The system cannot find the path specified.

C:\java>


please, what can i do again. i changed my path to C:\program files\java\jre 1.6.0_07\bin\javaw.exe
but still, can't get it right

what should i do???
 
Henry Wong
author
Marshal
Pie
Posts: 21496
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why are you posting the same stuff, so many times?

Henry
 
felicia adedotun
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
because i want to keep that topic until am through with my first application. or Is there any problem with that???/

if i don't understand and i really wants to learn, then i think i should ask question.
 
Henry Wong
author
Marshal
Pie
Posts: 21496
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


First of all, "java" is a directory, so it can't be executed. Second of all, Windows parse around spaces, so if you have spaces in your directory, you should quote it. See next point.



Again, Windows parse around spaces, so if you have spaces in your directory, you should quote it, like so...

C:\java>"C:\Program Files"\java\jre 1.6.0_0.7\bin\javaw.exe



Same issue...

C:\java>cd "C:\Program files"\java\jre 1.6.0_07\bin

Also note that javaw.exe is not a directory. The cd command require a directory as the target.

please, what can i do again. i changed my path to C:\program files\java\jre 1.6.0_07\bin\javaw.exe
but still, can't get it right


Same two issues... You need to quote around spaces. And javaw.exe is not a directory so shouldn't be part of the path.

Henry
[ November 07, 2008: Message edited by: Henry Wong ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic