SlideShare uma empresa Scribd logo
1 de 7
Baixar para ler offline
Kenia Álava
How to start programming in Java?

This part of the study material is not intended to address still concepts, but rather, you
can configure any computer window xp or Windows 7 32 or 64 bit and get it ready to start
programming.


First of all: Installing "jdk-7u7-nb-7_2-windows-i586-ml" JDK "Java Development Kit", will
not only compile but run applications, available for a variety of operating systems:




                                                                      Kenia Álava
METHOD 1: Use the Shell to run Java code. This point is important for you to read and
performers very well using the following commands:


 • javac.exe, compiler generated files *. Starting class source code (*. Java). The *. Java is
text, you can create and edit in a text editor, using the syntax of Java.


• Java.exe, systems interpreter for PC / Windows, executes bytecode files (files compiled
class extension). The *. Class have executable code, bytecode, platform independent, to
be executed on a "hypothetical or virtual machine" called Java Virtual Machine (JVM). Is
this JVM neutral who plays this code making a particular code on the CPU used. This
avoids having to make a different program for each CPU or platform.

     Shell enters the system and see what happens when Digitas commands: java or javac.
    You will realize that the javac command is not enabled, therefore the following steps and
                then try to use the command in question, the difference observed.




Remember watching the second image of this manual and look at the directory where
javac command is located.




                                                                             Kenia Álava
To educate the system accepts this command indicating that we should add "environment
variables" as indicated in the graph.




Creating our first program in java then install an editor to start coding (in this case Notepad
+ +) After that, create the following program and save it in the directory "c: 
ProgramasJava"

Note that the name of the file must be named identical to the class, using case sensitive.




Finally run the program, first compile the program with javac and then running the java
program.




                                                                          Kenia Álava
Method 2: Using the Eclipse integrated development (Available at www.eclipse.org -
Section       "downloads"        download       the      Eclipse        Classic     4.2)
This method is much faster than before, it is a method of abstraction for programming
while we should not install the JDK, and load the necessary libraries to program without
tread very rodeo.

STEP 1: Download and unzip the file indicated




STEP 2: After that opening the Eclipse IDE, the program requests a folder where you will
save the projects that we believe in java, proceed as indicated in the graph (you must create
the folder previously).




                                                                         Kenia Álava
STEP 3: Follow the following sequence of actions to create a project in java.




Look what happens next.




Now insert a class as follows




                                                            Kenia Álava
With the IDE, the only line of code you write play, which was noted below




Run the program with the button, watch out.


Further notes what happened in "ProgramasJava2" you created.




                                                                      Kenia Álava

Mais conteúdo relacionado

Mais procurados

Mais procurados (18)

Java History
Java HistoryJava History
Java History
 
Maven
MavenMaven
Maven
 
Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Automated UI testing. Selenium. DrupalCamp Kyiv 2011Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Automated UI testing. Selenium. DrupalCamp Kyiv 2011
 
Introduction of java
Introduction of javaIntroduction of java
Introduction of java
 
Java AWT and Java FX
Java AWT and Java FXJava AWT and Java FX
Java AWT and Java FX
 
Java Class 2
Java Class 2Java Class 2
Java Class 2
 
Ctxaug 02 amd atlassian build pipeline
Ctxaug 02   amd atlassian build pipelineCtxaug 02   amd atlassian build pipeline
Ctxaug 02 amd atlassian build pipeline
 
Selenium drivers
Selenium driversSelenium drivers
Selenium drivers
 
Selenium introduction
Selenium introductionSelenium introduction
Selenium introduction
 
Java history 01
Java history 01Java history 01
Java history 01
 
Selenium training12 1
Selenium training12 1Selenium training12 1
Selenium training12 1
 
Selenium using C# by Yogesh Kumar
Selenium using C# by  Yogesh KumarSelenium using C# by  Yogesh Kumar
Selenium using C# by Yogesh Kumar
 
Java 1
Java 1Java 1
Java 1
 
Automated UI testing with Selenium
Automated UI testing with SeleniumAutomated UI testing with Selenium
Automated UI testing with Selenium
 
Java Presentation
 Java Presentation Java Presentation
Java Presentation
 
JAVA INTRODUCTION
JAVA INTRODUCTIONJAVA INTRODUCTION
JAVA INTRODUCTION
 
Selenium Webdriver pop up handling
Selenium Webdriver pop up handlingSelenium Webdriver pop up handling
Selenium Webdriver pop up handling
 
reactjs basics
reactjs basicsreactjs basics
reactjs basics
 

Destaque (7)

Java Week3(A) Notepad
Java Week3(A)   NotepadJava Week3(A)   Notepad
Java Week3(A) Notepad
 
Java Week9(B) Notepad
Java Week9(B)   NotepadJava Week9(B)   Notepad
Java Week9(B) Notepad
 
Java Week6(B) Notepad
Java Week6(B)   NotepadJava Week6(B)   Notepad
Java Week6(B) Notepad
 
Notepad ++
Notepad ++Notepad ++
Notepad ++
 
Notepad
NotepadNotepad
Notepad
 
Notepad Presentation Mca
Notepad Presentation McaNotepad Presentation Mca
Notepad Presentation Mca
 
Java notes
Java notesJava notes
Java notes
 

Semelhante a Class 1

Semelhante a Class 1 (20)

How to write a simple java program in 10 steps
How to write a simple java program in 10 stepsHow to write a simple java program in 10 steps
How to write a simple java program in 10 steps
 
Java part 1
Java part 1Java part 1
Java part 1
 
Blog ingles pdf.1
Blog ingles pdf.1Blog ingles pdf.1
Blog ingles pdf.1
 
Java Intro: Unit1. Hello World
Java Intro: Unit1. Hello WorldJava Intro: Unit1. Hello World
Java Intro: Unit1. Hello World
 
simple Java Hello
simple Java Hellosimple Java Hello
simple Java Hello
 
Class 1 blog
Class 1 blogClass 1 blog
Class 1 blog
 
Class 1
Class 1Class 1
Class 1
 
Class 1
Class 1Class 1
Class 1
 
B.Sc. III(VI Sem) Advance Java Unit2: Appet
B.Sc. III(VI Sem) Advance Java Unit2: AppetB.Sc. III(VI Sem) Advance Java Unit2: Appet
B.Sc. III(VI Sem) Advance Java Unit2: Appet
 
InstallingJavaFX.pdf
InstallingJavaFX.pdfInstallingJavaFX.pdf
InstallingJavaFX.pdf
 
Installation of java and program execution
Installation of java and program executionInstallation of java and program execution
Installation of java and program execution
 
JAVA_STEP_V7
JAVA_STEP_V7JAVA_STEP_V7
JAVA_STEP_V7
 
JavaFX - Sketch Board to Production
JavaFX - Sketch Board to ProductionJavaFX - Sketch Board to Production
JavaFX - Sketch Board to Production
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptx
 
Java lab1 manual
Java lab1 manualJava lab1 manual
Java lab1 manual
 
Core java introduction
Core java introduction Core java introduction
Core java introduction
 
JAVA First Day
JAVA First DayJAVA First Day
JAVA First Day
 
Free EJB Tutorial | VirtualNuggets
Free EJB Tutorial | VirtualNuggetsFree EJB Tutorial | VirtualNuggets
Free EJB Tutorial | VirtualNuggets
 
Ja coco ignite
Ja coco igniteJa coco ignite
Ja coco ignite
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
 

Mais de Miguel Mastarreno Macías (20)

Miguel portafolioingles
Miguel portafolioinglesMiguel portafolioingles
Miguel portafolioingles
 
Kenia
KeniaKenia
Kenia
 
Folder aby
Folder abyFolder aby
Folder aby
 
Mata
MataMata
Mata
 
Gisella bravo portafolio
Gisella bravo portafolioGisella bravo portafolio
Gisella bravo portafolio
 
Portafolio kenia original 2 a
Portafolio kenia original 2 aPortafolio kenia original 2 a
Portafolio kenia original 2 a
 
Class 3 2ciclo
Class 3 2cicloClass 3 2ciclo
Class 3 2ciclo
 
Class 1 y 2 2ciclo
Class 1 y 2 2cicloClass 1 y 2 2ciclo
Class 1 y 2 2ciclo
 
Proyecto
ProyectoProyecto
Proyecto
 
Proyecto de ingles traducido
Proyecto de ingles traducidoProyecto de ingles traducido
Proyecto de ingles traducido
 
Class 6
Class 6Class 6
Class 6
 
Class 5
Class 5Class 5
Class 5
 
Class 4
Class 4Class 4
Class 4
 
Class 3
Class 3Class 3
Class 3
 
Class 2
Class 2Class 2
Class 2
 
Kenii
KeniiKenii
Kenii
 
Gissy
GissyGissy
Gissy
 
Aby
AbyAby
Aby
 
Folder
FolderFolder
Folder
 
Gestor proyectocalculo
Gestor proyectocalculoGestor proyectocalculo
Gestor proyectocalculo
 

Class 1

  • 2. How to start programming in Java? This part of the study material is not intended to address still concepts, but rather, you can configure any computer window xp or Windows 7 32 or 64 bit and get it ready to start programming. First of all: Installing "jdk-7u7-nb-7_2-windows-i586-ml" JDK "Java Development Kit", will not only compile but run applications, available for a variety of operating systems: Kenia Álava
  • 3. METHOD 1: Use the Shell to run Java code. This point is important for you to read and performers very well using the following commands: • javac.exe, compiler generated files *. Starting class source code (*. Java). The *. Java is text, you can create and edit in a text editor, using the syntax of Java. • Java.exe, systems interpreter for PC / Windows, executes bytecode files (files compiled class extension). The *. Class have executable code, bytecode, platform independent, to be executed on a "hypothetical or virtual machine" called Java Virtual Machine (JVM). Is this JVM neutral who plays this code making a particular code on the CPU used. This avoids having to make a different program for each CPU or platform. Shell enters the system and see what happens when Digitas commands: java or javac. You will realize that the javac command is not enabled, therefore the following steps and then try to use the command in question, the difference observed. Remember watching the second image of this manual and look at the directory where javac command is located. Kenia Álava
  • 4. To educate the system accepts this command indicating that we should add "environment variables" as indicated in the graph. Creating our first program in java then install an editor to start coding (in this case Notepad + +) After that, create the following program and save it in the directory "c: ProgramasJava" Note that the name of the file must be named identical to the class, using case sensitive. Finally run the program, first compile the program with javac and then running the java program. Kenia Álava
  • 5. Method 2: Using the Eclipse integrated development (Available at www.eclipse.org - Section "downloads" download the Eclipse Classic 4.2) This method is much faster than before, it is a method of abstraction for programming while we should not install the JDK, and load the necessary libraries to program without tread very rodeo. STEP 1: Download and unzip the file indicated STEP 2: After that opening the Eclipse IDE, the program requests a folder where you will save the projects that we believe in java, proceed as indicated in the graph (you must create the folder previously). Kenia Álava
  • 6. STEP 3: Follow the following sequence of actions to create a project in java. Look what happens next. Now insert a class as follows Kenia Álava
  • 7. With the IDE, the only line of code you write play, which was noted below Run the program with the button, watch out. Further notes what happened in "ProgramasJava2" you created. Kenia Álava