Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Java 2
This is the forum to discuss the Wrox book Beginning Java 2, SDK 1.4 Edition by Ivor Horton; ISBN: 9780764543654
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Java 2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 4th, 2004, 05:50 AM
Registered User
 
Join Date: Jan 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Learning Java 2

Hello,

I was wondering whether anyone could offer me some useful advice on learning Java 2 from Ivor Horton's book. I spent the last couple of weeks reading from chapters 1 to 4, and found it relatively easy to follow. I have also completed the exercises at the end of each chapter. But, when I came to chapter 5, I became somewhat disoriented and found it a little difficult to understand what is actually going on. Does chapter 5 touch on object-oriented programming? The exercise questions are a tremendous challenge and I could not even begin without having a look at the solutions which I downloaded from the Wrox web site. Is anyone encountering similar difficulties along their learning progress?

Thank you and I hope to hear from anyone of you soonest!

Sincerely,
Bobby

  #2 (permalink)  
Old January 4th, 2004, 09:27 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Bobby,

Learning is frustrating but it is also very rewarding, and I'm sure that you will soon overcome your current difficulty; probably only yo be faced with another new challenge!

Java, as you know is an OO language and classes form the back bone of this, therefore you absolutely must understand most of Chapter Five before moving on with the rest of the book. It might even be helpful for you to postpone your Java efforts for a while and focus solely on learning OO concepts. Don't see this as a backwards step; too many people attempt to learn the syntax of Java without really understanding OO and as a consequence limit themselves in their use of the language. Get yourself a copy of "The Object Oriented Thought Process" by Matt Weisfeld, which is a great book and it is easily digested over a weekend... honestly. After reading this return to Chapter Five and it you will sail through it easily.

Have fun learning and make sure you ask any questions that you have. There are a couple of guys here who really know Java well (and no, I don't include myself in this category) and will bw able to help you out. If they can't help then I'll throw in my two pence worth.

Cheers

Martyn
  #3 (permalink)  
Old January 14th, 2004, 07:16 AM
Authorized User
 
Join Date: Sep 2003
Location: den Haag, , Netherlands.
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, chapter 5 takes more time than the other chapters.

I had problems getting my packages to work properly.
I put my packages as jar extensions in the: jre lib ext, but java did not find them.
Guess what: there was another java in my windows directory, and the classpath first called windows, then the JDK.
I placed the JDK first in the classpath, and now any class file anywhere can find these extension packages.

Took me 5 months to solve this. Brrr...

MY QUESTION would be:
does this particular problem put a limitation on the implementation of my laboriously written JAVA programs on other people's computers?
Suppose I have to tell my sister to adjust her AutoExec classpath, before my JAVA works. Brrr...

CheerZ~!
Frans

Quote:
quote:Originally posted by bobbygan


...when I came to chapter 5, I became somewhat disoriented and found it a little difficult to understand what is actually going on. Does Is anyone encountering similar difficulties along their learning progress?

Bobby
  #4 (permalink)  
Old January 16th, 2004, 01:13 AM
Registered User
 
Join Date: Jan 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The way I have seen code distributed has been either compiled code packages in a .zip/.jar, or you include your source in the program's directory.

  #5 (permalink)  
Old January 16th, 2004, 07:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You don't have to have the JDK installed to run Java applications, all you actuall need is the JRE, which you can downlaod from Sun. The usual way of running your Java application would then be to specify the class path as part the Java command:

java -classpath /java/MyClasses/myclasses.jar utility.myapp.Cool

The Sun site contains a good tutorials about class paths, packages, and JARs.


Cheers

Martyn
  #6 (permalink)  
Old January 21st, 2004, 03:32 PM
Authorized User
 
Join Date: Sep 2003
Location: den Haag, , Netherlands.
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Martyn
 You don't have to have the JDK installed to run Java applications, all you actuall need is the JRE, which you can download from Sun.

java -classpath /java/MyClasses/myclasses.jar utility.myapp.Cool
Dear Martyn,

My sister has never even heard of classpaths, yet I feel I can assist her with one of my premium Java programs.
This should best be sent by email or downloaded from a website, and should run easily and by itself on her computer.

It should be a permanent program with a minimum of security restrictions, not an applet. But she don't mind giving me access, and she will click all the agree-access-yes-buttons.

It's a waste of time to explain her the classpath. But she will feel comfortable with a nice and easy GUI, prepared for the task it needs to perform.

How do I make life easier for her?
- Frans

  #7 (permalink)  
Old January 21st, 2004, 07:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Frans,

If your sister hasn't got the java's JRE installed on her PC then she will need to obtain this from the Sun website: http://wwws.sun.com/software/download/

I usually create a short cut on the desktop using javaw.exe, which contains all of the necessary information:

%windir%\System32\javaw.exe -cp c:\j2work ChangeLookAndFeel

I hope this helps

Martyn
  #8 (permalink)  
Old January 22nd, 2004, 05:11 PM
Authorized User
 
Join Date: Sep 2003
Location: den Haag, , Netherlands.
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:

I hope this helps

Martyn
Thanks Martyn, so the programmers have a tough time using the classpath, but our customers get the nice and clean GUI without the fuzz?

I am just testing the Java...

Frans
- at chapter 6 now

  #9 (permalink)  
Old January 30th, 2004, 01:27 PM
Registered User
 
Join Date: Jan 2004
Location: nottingham, , United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasman23x
Default

I am eaxctly in the same situation, and some syntax just strangely appears with no explanation. PErhaps this is just my frustration in being hard of thinking. Chapter 5 really is soo much more complex. I will get there I will get there I will get there

  #10 (permalink)  
Old January 30th, 2004, 10:23 PM
Registered User
 
Join Date: Oct 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes I agree with you. Chapter 5 needs a lot of concentration. I found the book in general is rather more academic than other books in Java. It is a very good one, but I wished it could simplify the OOP concepts more. I would suggest "Java How To Program" by Deitel & Deitel.

Nawar
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Learning C# Jael C# 1 October 19th, 2005 07:54 PM
E-Learning dineshv Flash (all versions) 1 April 1st, 2005 03:12 PM
Learning Java (Book suggestion) jlick Java Databases 3 April 6th, 2004 02:28 PM
i am learning kuehhc Beginning PHP 4 March 29th, 2004 04:33 PM
I want to start learning Java Gerd Molkens BOOK: Beginning Java 2 3 February 19th, 2004 10:04 AM



All times are GMT -4. The time now is 03:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.