Originally posted by Stuart Goss:
Hi there!
Is anybody on this forum reading the "Head First Java" book by Ms. Sierra and Mr. Bates currently?
I am just interested to find out, whether there are more beginners like me out there: "sharpening pencils", using "brain power", marshing through prep-code and having loads of fun while learning in a fantastic way?
Stuart
Originally posted by Steve Stanicki:
Problem solved.
4. Moved Hello World and BeatBox to my new "working directory".
5. Recompiled and ran both successfully.
... , if this was a real world environment, how would this be fixed?
2. If I make other subdirectories under my new working directory, do I have to edit CLASSPATH everytime?
"If we knew what we were doing, it wouldn't be research"
- Albert Einstein
Originally posted by Steve Stanicki:
Hi Lynn and Stuart,
Problem solved.
1. I downloaded fresh and uninstalled/installed a new JRE and JDK in case
of files missing or corrupted after defragging.
2. Simplified my directory structure.
3. Added the new CLASSPATH and PATH.
4. Moved Hello World and BeatBox to my new "working directory".
5. Recompiled and ran both successfully.
This leads me to ask the following questions:
1. As an experienced programmer, I consider these pretty harsh steps (a last resort on a mainframe for example), if this was a real world environment, how would this be fixed?
2. If I make other subdirectories under my new working directory, do I have to edit CLASSPATH everytime?
As long as I learned something (CLASSPATH) it's all good.
Thanks for your input,
Steve
"If we knew what we were doing, it wouldn't be research"
- Albert Einstein
"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra
Originally posted by Steve Stanicki:
1. As an experienced programmer, I consider these pretty harsh steps (a last resort on a mainframe for example), if this was a real world environment, how would this be fixed?
Originally posted by Rusty Shackleford:
It is a fun and enjoyable read, although I was quite disappointed with the Swing section. That section just doesn't live up to the rest of the book, that I have read so far. It is light on real world gui constructs, no mention of many common components, and the beatbox thing, while cool is more of a "whee! look what I can do", then a solid demo of GUI's. Oh, and weak coverage of layout managers and lacking any mention of the most powerful and confusing one hurts too. Hopefully they will make up for this lack and put out a HF Swing book.
There is no emoticon for what I am feeling!
Originally posted by Deb Wright:
Hey guys,
I'm reading the Head First Java book as well as doing the Cattle Drive.
Did you type in the code for chapter 5 (SimpleDotCom)? I'm having a heck of a time getting anything to compile. Up to this point everything was going ok.
On the SimpleDotCom class, the compiler wouldn't accept the new "for" format, even after I updated to the latest version of Java and restarted. It thought the colon should be a semicolon. It also flags the "return result;" statement.
Anybody else get that, or have any suggestions?
Thanks,
Deb
Originally posted by Stuart Goss:
Hi Deb,
you may need to be using
javac -source 1.5 YourAppName.java
...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Deb Wright:
Hey guys,
I'm reading the Head First Java book as well as doing the Cattle Drive.
Did you type in the code for chapter 5 (SimpleDotCom)? I'm having a heck of a time getting anything to compile. Up to this point everything was going ok.
On the SimpleDotCom class, the compiler wouldn't accept the new "for" format, even after I updated to the latest version of Java and restarted. It thought the colon should be a semicolon. It also flags the "return result;" statement.
Anybody else get that, or have any suggestions?
Thanks,
Deb
Originally posted by Deb Wright:
...should the java code for the 3 classes (SimpleDotComGame, SimpleDotCom, and GameHelper) be in one file? I have them in separate files, and so compiled them separately...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Deb Wright:
Hi Stuart & Marc,
Thanks for the tips. I ended up uninstalling JRE & JDK 1.4.2. I installed the JDK for 1.5.0_06. Then I followed some advice I found from a Cattle Drive thread from the end of October (can't compile .java file). I added user variables of JAVA_HOME and Path as laid out at the end of that thread, and updated my Classpath & Path system variables. Then I restarted my machine.
That solved the problem I had with recognizing 1.5.
Now I am just getting cannot find symbol errors on class references in the game class. This may sound like a dumb question, but should the java code for the 3 classes (SimpleDotComGame, SimpleDotCom, and GameHelper) be in one file? I have them in separate files, and so compiled them separately.
Thanks again!
Deb
Originally posted by Curtis Brown:
I tried starting with Java in a Nutshell, but it was putting me to sleep. Then I discovered Head First, it's a great alternate perspective into Java!
I only just got Head First yesterday, so I'm only up to page 60.
I'm trying to catch-up, though! I'll check out this Cattle Drive, soon, but for now I think I need to digest more of Head First!
You're really speeding, it's really worth doing the exerceises and sleeping over it all. Try it out. The longer you spend learning and thinking about it, the long it will stick!
Originally posted by Stuart Goss:
[QB]Hi there!
Is anybody on this forum reading the "Head First Java" book by Ms. Sierra and Mr. Bates currently?
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|