Wednesday, October 21, 2009

Teachers Confidentiality Eating Disorders

Installing and configuring Ubuntu on XP JDK

order to run our programs written in Java without needing to install an IDE, which I recommend to begin to familiarize themselves with language, using the console Windows with the command EDIT or gedit in the case of Ubuntu.

What should we do first is to download the latest version of Java Virtual Machine from official site for the operating system you're using and accept the license to use Java. Once you have downloaded the virtual machine will proceed to install and configure it as follows:



In XP automatically starts the installation by double-clicking on the program installation and displays the welcome screen that tells us that this program will guide you through the process Java installation. Next, we must accept the license agreement, usually no one reads ... Well, here's something interesting and this is a personal recommendation, many people may differ, to accept the license agreement screen appears that indicates the location of the virtual machine on your hard disk. By default this is " C: \\ Program Files \\ Java \\ jdk1.6.0 " I would recommend that the installation is made directly in C: \\ Java to access the files you generate from the window commands more quickly and not have to navigate through folders. But it is a personal view. Remember though this route because we will need later.



By clicking the "Next" starts copying the files. Halfway through the process again we ask now the installation path of the JRE (Java Runtime Environment or Runtime Environment Java ) which is the set of Java libraries that other programs need to run, like Limewire , for example. After the copy of these files is presented to us a window that says the installation is finished completely.

Now if we compile and run our Java programs to any location on your hard disk from the DOS console will have to set environment variables for Java, which we will do as follows:

Open the Run dialog box by pressing "Windows key - R " or following the path " Start - Run " both without quotes. Within that little picture also enter the following command without quotes: " sysdm.cpl" which serves to directly open the system properties. At the top is to do window click "Advanced" and then clicking the Environment Variables button.



In the window that appears look for in the section "System Variables" variable "Path." What we have is to add a ";" (without quotes) plus the path to the bin folder where you installed Java pressing the modify button. For example, in my case:

; C: \\ Java \\ jdk1.6.0_16 \\ bin

Why bin? Because inside that folder is the compiler and the Java interpreter. When finished press the button to accept. To make sure we have correctly installed Java open cmd and type:


java-version and we enter
ara to show us the Java version we have installed. And

javac-version

to show us the version of the Java compiler.


Finally, the installation process and settings in Windows Vista is the same.

0 comments:

Post a Comment