Tuesday, 9 January 2018

How to Install the Java Software Development Kit



How to Install the Java Software Development Kit

The Java Software Development Kit (Java SDK or JDK) is an application created by Sun Microsystems to create and modify Java programs. This is where to start if you would like to start programming in Java.

Steps


1.     1
Download the latest version of the *Java JDK from Sun Microsystems.
2.     2
Double-click on the install file and it should open an installer (Fig. 1).
3.    
4.     Click next, then read and accept the license.
5.      
4 On the next screen you will encounter some options. Just leave these alone and click next unless you know what you are doing. (Because this is being read it is assumed that you do not.)(Fig. 2)
6.    5 The next page you encounter should install (and in some cases download) the Java Development Kit. (Fig. 3)
7.    
8.    6 After the installer is finished, open run by clicking Start > Run... or by typing Windows Key + R.
9.    
10.                        7 In the text box, type "cmd" and click "OK".
11. 8 A simple window should be opened with a black background and a text prompt. This is called the "Command Prompt." My command prompt background is red, but it could really be any color. (Fig. 4)
9 After focusing the window, type "javac" and press enter. If the prompt returns something along the lines of: "'javac' is not recognized as an internal or external command, operable program or batch file" then continue with the next step. If it shows many more options and lines, skip to step 15.
12.
13.                        10 Open the properties of "My Computer" by either right-clicking the icon on the desktop or right-clicking Start > My Computer. When the pop up menu opens, scroll to the bottom and select "Properties".
14.
15.                        11 This should open a window named "System Properties". Click on the "Advanced" tab and then click "Environment Variables". (Fig. 5)
16.
17. 12 Next, another window opens with a lot of confusing sentences and letters. Double-click on the "Path" variable on either of the option boxes. It is recommended to edit the variable in the box "User variables for (your username)".
18.  
13 Once the variable is opened, a text box in yet another window appears. Careful not to delete anything in this box. At the end of the text box, add a semi-colon if there is not one already, and add "C:\Program Files\Java\jdk1.6.0\bin" to the text box. This is assuming you did not change the file path of the installation.
19. 14
Click "Apply" and "OK" to all the windows you have just opened. Open the command prompt again, while following steps 6-9 to see if that "javac" command works.
20. 15
Congratulations! You have taken your first step to starting Java programming.


Tuesday, 31 October 2017


How to Setup Network Between Virtual Box Host OS (Win 7 ) & Guest OS
(winxp)

I will be using VirtualBox OS  on a Windows7 host and a Windows XP guest.
Step 1: Start up VirtualBox.
I do, of course, assume you already have VirtualBox installed as the host as well as a working guest OS  installed. That being the case, start up VirtualBox.
Step 2: Stop the virtual machine to be configured.

Step 3: Open the Settings window of the guest OS.

Step 4: Configure the bridged network.


This particular host/guest resides on my Desktop, hence the Eth0 (Wired) network adapter name.
Where this can be tricky is the Adapter Type settings. To get to this setting you must expand the Advanced section. In this advanced section you can configure:
·         Adapter type
·         Mac address
·         Cable connected
The more important of the three is the Adapter type. VirtualBox can virtualize the following six types of network adapters:
·         AMD PCNet PCI II (Am79C970A);
·         AMD PCNet FAST III (Am79C973, the default);
·         Intel PRO/1000 MT Desktop (82540OEM);
·         Intel PRO/1000 T Server (82543GC);
·         Intel PRO/1000 MT Server (82545EM);
·         Paravirtualized network adapter (virtio-net).
The default is PCNet FAST III because it is supported by nearly every operating system out of the box. If, after setting up your bridged network, your network does not respond, this setting is what you will most likely have to change. Although it's a hassle, if your bridged network doesn't work, simply shut down the virtual machine and repeat the process (selecting a different Adapter type) until it works.
OK your changes and fire up your Guest OS again.
Step 5: Configure your Guest OS network

Pick up a network address that belongs to the same subnet as your Host OS. Figure B shows my Guest OS reporting the same IP address scheme that my Host OS is on.
Figure B

WE give ip address & others as shown in image.
guest_ip_info.png
Same IP scheme, same subnet, same gateway.
Now your machines on your network can see your Virtualized Machine.