Wednesday, October 21, 2009

Example Of Application Letter For It

Installing and configuring JDK

As in the previous post installation JDK on XP, download the Ubuntu virtual machine from Sun official website. In this case download a file. Bin that will be installed as follows once you have downloaded:

terminal in a Change to the directory where the file we have descargdo Java, in my case I have downloaded to your desktop. Once located in the folder use the chmod command to access the binary file in run mode:

$ chmod + x jdk-6u16-linux-i586.bin

The value "16" can change depending on the version you want to install. Now to run the installation file will do as root as follows:

$ sudo ./jdk-6u16-linux-i586.bin

and typing our password user. Automatically display the license agreement for Java, which can go by pressing the spacebar. Once finished reading the contract we have to accept it by pressing Y and then enter. When you end the process of generating the JVM folder and press enter to continue in your browser will open the registration page Java.

The above process creates a folder with permissions that have to move to a folder of Java libraries for our system with the following statement:

$ sudo mv jdk1.6.0_16 / usr / lib / jvm
where / usr / lib / jvm is the destination folder

Now install the new version of Java as one of the alternative system as follows:
 
$ sudo update-alternatives - install "/ usr / bin / java" "java" "/ usr/lib/jvm/jdk1.6.0_16/bin/java" 1

and establishes the new alternative to Java:
 
$ sudo update-alternatives - set java / usr/lib/jvm/jdk1.6.0_16/bin/java
 
NOTE: update-alternatives serves to specify a schedule for a task that we want to make through blogs.
 
now establish the system alternatives to compile the programs from any location through a terminal with the following two statements:
 
$ sudo update-alternatives - install "/ usr / bin / javac" "javac" "/ usr/lib/jvm/jdk1.6.0_16/bin/javac" 1
 
$ sudo update-alternatives - set javac / usr/lib/jvm/jdk1.6.0_16/bin/javac

Just as in Windows, we check whether we have done successfully above process verifying the versions of the virtual machine and Java compiler.


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.

Sunday, October 4, 2009

Why Gas Takes A Long Time To Light The Stove



In this first entry I'll talk a little about what I am learning the basics of programming classes about the basic structure of a program written in Java.

The following example prints a message on the screen and terminates.


  1. / / Saludo.java
  2. public class Greeting
  3. {public static
  4. void main (String [] args) {
  5. System.out.print ("Hello world!");
  6. System.exit ( 0);}
} To run this first program we use various means, such as do it from a terminal or console of your operating system or help of an IDE (Development Environment integrated) as NetBeans or Eclipse , to name a few.

What makes this program?

In line 1 we are putting a single line comment is specified by the two diagonals (/ /) and followed by a message which will be ignored by the compiler when error checking. Not visible on the screen. Its utility is to present messages to those who wish to read our code.

Line number 3 says

public class Greeting {public

and class are Java reserved words and thus we are telling the compiler that we will write a main class within our Saludo.java file whose name is healthy. For convenience the main class name should match the name of the file. What is also good programming practice is to have the following considerations:

  • The class names are written with the first letter capitalized.
  • The names of the members and methods are written with the first letter in lowercase.
  • must follow the rules for writing the names of identifiers in Java (of which I will not talk).
The left key is defining the scope of the class.

On line # 5 are:

public static void main (String [] args) {

We are declaring the main method of our program and where it begins execution. public words, static void and Java language are reserved, meaning that we can not use as names of members, methods or classes. The keyword public indicates that the main method is known externally to the class, also static and may be referenced without the need to create an instance of the class externally to its scope, whereas void indicate that the function will return unsuccessful. The parameter passed to the main method is an array of strings, a series of arguments that we send to the function to perform a particular action is with them. In this case are not used. Finally the left key that defines the area of \u200b\u200bprimary function. In line

:

System.out.print ("Hello world!");

we are using the Java standard output when using the System. The print () method of System class can receive as parameters of data type integer, float, double, character, boolean or string to display them as messages to the screen.

With instruction System.exit (0); indicate that our program is completed with error code 0, ie, without error.

Finally finished the main scope of the class and the class greet with the right brace (}).

If we run our program in the Windows console gives a result like this: