View Review Details


Book:   Learning Java
Subject:   Learning Java, 2nd Edition Review
Date:   2003-04-22 17:25:47
From:   Rupert
Rating:  StarStarStarStarStar

I feel that the book is very good at getting across the fundamentals of the language, which is a very important building block of programming, unfortunately the part that most people scurry through and forget.


I do however agree with the other readers reviews that there should have been a short paragraph on how to install and run javac.exe and java.exe at the beginning of the book. As someone who works in the computer industry I was lucky enough to have friends that were able to point me in the right direction.


For those that do not have this luxury here's how to do it for Windows:


<blockquote>


Installation



  • Place CD in CD-ROM</Li>


  • Find j2sdk-1_4_0-win.exe in the directory D:\software\JavaSDK-1.4.0</Li>


  • Double click on j2sdk-1_4_0-win.exe to install</Li>


  • Take all default options through install wizard</Li>



If you followed the above directions the necessary software will be installed in C:\j2sdk1.4.0 on your computer.


Setting Environment Variables (Windows NT 4.0 and 2000)



  • Right Mouse Click on the 'My Computer' icon on your desktop</Li>


  • Select 'Properties'</Li>


  • Select the 'Advanced' tab</Li>


  • Select 'Environment Variables...'</Li>


  • In the lower window marked 'System Variables' double click 'Path'</Li>


  • In the text box named 'Variable Value:' move the cursor all the way to the right with the arrow keys</Li>


  • Enter the following quoted string ";C:\j2sdk1.4.0\bin;C:\j2sdk1.4.0\jre\bin"</Li>


  • It is very important you do not remove any of the other entries!</Li>


  • Press 'OK' until you are back to your desktop</Li>


  • Reboot your machine so that the new Environment Variables will take effect</Li>



It is not necessary to set the environment variables, however if you do not you will need to type the full path to javac.exe and java.exe every time you use it.


Running javac.exe and java.exe



  • To compile type: 'javac.exe fileName.java'</Li>


  • To execute compiled code: 'java.exe fileName'</Li>


  • Note that there is no file extension used when running a compiled Java program</Li>



</blockquote>


See larger cover