SlideShare a Scribd company logo
1 of 24
Java
How to find, install and begin
to use the Java programming
language.
A word or two on the history of some old fashion
programming languages
A small history of Java…
How do I install it on my computer?
How do I use what I just installed?
What we’re going to
cover
A short look at some old school
languages, BASIC, C and C++
It all begins in the sixties…
BASIC
BASIC stands for Beginner’s All-purpose Symbolic
Instruction Code.
It was designed in 1963 at Dartmouth college. It was
designed to make it easy for non-technical people to
write computer programs.
BASIC programs were like grocery lists. You told the
program what you wanted to do and it did it in order.
BASIC was Interpreted.
C and C++
Developed in the early seventies, “C” became the
de-facto language for microcomputer
programming in the seventies and eighties.
“C” was not interpreted, it was compiled.
__________
Later, in the early eighties, C++ introduced object
orientation to the C world. Originally called “C
with Classes”, Bjarne Stroustrup developed the
additions to C that, in 1985, became C++.
OO is when programmers try to mimic the real
world more closely and make programs act like
“objects” and not just be grocery lists.
So, what have we learned?
1. BASIC was an interpreted programming language
2. “C” was a compiled programming language
3. “C++” brought object orientation to “C”
Say goodbye to the
seventies and
welcome to a
short (but hopefully informative)
history of the Java
programming
language
Authentic Seventies
Nerds
James Gosling began developing Java beginning
in 1991
It was first called “Project Green” and ‘Oak”
First developed for remote cable TV boxes
James Naughton creates “HotJava” in 1995. it’s
a web browser that lets you run “Applets”. The
entire browser is written in Java.
In 1998 Java 1.2 is released
Java just released version 1.6 or J2SE 6…
James Gosling Circa 1971
James Gosling Today
Java Buzzwords
Simple
Object Oriented
Architecture Neutral
Portable
Multithreaded
High Performance – JIT
Buzzwords glommed from the Core Java 2 book verbatim
FREE
Is Java Interpreted or Compiled?
Is Java Interpreted or Compiled?
BOTH!!
Java programs are compiled to Bytecode
Bytecode is then interpreted by a JVM, or Java Virtual
machine. The virtual machine is what runs your program
It’s the JVM that cares about your Operating system, NOT THE PROGRAM!
WORA - Write Once, Run Anywhere!
Is Java Object Oriented?
Is Java Object Oriented?
YES!
Every bit of code in a Java program is in a “Class”
Code Reuse, Encapsulation, Polymorphism, Inheritance
DUKE!
Why? Who knows…
Downloading a Java JDK
You want a JDK, not just a JRE
Create a “Temp” directory on your PC or laptop
Go to http://java.sun.com
Go to the “Popular Downloads” section and select “Java SE”
Select a JDK without Netbeans (We’ll talk about this later)
Agree to the accept the use policy
Right Click and Save the Offline Windows JDK to your temp dir
Installing a Java JDK
Go to your “Temp” dir using Windows Explorer
Make sure no other apps are running and double click the install program
you just downloaded. Follow the steps.
I install in C:Java
Watch fom multiple JREs and JDKs! In Windows the Registry runs the
show now, not the JAVA_HOME env variable
Test with a Command Prompt Window and “java –version”
Add C:Java”Java ver”bin to your PATH var
Be sure to add “current directory” to the CLASSPATH (if you had one)
Now, Lets test it
DOS - Command Prompt
Make a directory structure
Type “Edit” and Voila
PSVM
Test JAVAC and JAVA
Create Bytecode ( the *.class file) with “Javac”
Run Program with “Java”
If we were
lucky we
got
something
that looks
like this…
Help on the Web
http://java.sun.com/javase/6/docs/api/
http://www.javaranch.com
http://java.sun.com/docs/books/tutorial/
http://www.sorcon.com/java2/
http://remus.rutgers.edu/freestuff
Got an Error?
Just type it verbatim into Google and you usually can find the
answer to your question or solve your problem.
Wikipedia is a good place to get background and history
On anything, and Java is no exception
Remember….
Java is both compiled and
interpreted
Java is Object Oriented
http://java.sun.com is Java’s home
You want the Java Development Kit (JDK) , not a JRE or J2EE
Take your time, use temp directories for setup files
Test with a simple “Hello World” after you install
Use the Web for help (Google errors, javaranch, etc.)
THANK YOUhttp:remus.rutgers.edujavaworkshops
Any questions or comments can be sent to me
At biglars@cs.rutgers.edu
Be Good Now…
©2007 Rutgers University & Lars Sorensen

More Related Content

Viewers also liked

Shared Personalization Service - How To Scale to 15K RPS, Patrice Pelland
Shared Personalization Service - How To Scale to 15K RPS, Patrice PellandShared Personalization Service - How To Scale to 15K RPS, Patrice Pelland
Shared Personalization Service - How To Scale to 15K RPS, Patrice PellandFuenteovejuna
 
Профилирование памяти в приложениях на Python, Антон Грицай
Профилирование памяти в приложениях на Python, Антон ГрицайПрофилирование памяти в приложениях на Python, Антон Грицай
Профилирование памяти в приложениях на Python, Антон ГрицайFuenteovejuna
 
Extreme Cloud Storage on FreeBSD, Андрей Пантюхин
Extreme Cloud Storage on FreeBSD, Андрей ПантюхинExtreme Cloud Storage on FreeBSD, Андрей Пантюхин
Extreme Cloud Storage on FreeBSD, Андрей ПантюхинFuenteovejuna
 
691 bx webxtools
691 bx webxtools691 bx webxtools
691 bx webxtoolsSumit Tambe
 
Introduction to oracle(2)
Introduction to oracle(2)Introduction to oracle(2)
Introduction to oracle(2)Sumit Tambe
 
Sql group functions
Sql group functionsSql group functions
Sql group functionsSumit Tambe
 
Сервер-агрегатор на python (аля Xscript FEST), Сумин Андрей, Сабуренков Михаи...
Сервер-агрегатор на python (аля Xscript FEST), Сумин Андрей, Сабуренков Михаи...Сервер-агрегатор на python (аля Xscript FEST), Сумин Андрей, Сабуренков Михаи...
Сервер-агрегатор на python (аля Xscript FEST), Сумин Андрей, Сабуренков Михаи...Fuenteovejuna
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web designSumit Tambe
 
Goal Driven Performance Optimization, Peter Zaitsev
Goal Driven Performance Optimization, Peter ZaitsevGoal Driven Performance Optimization, Peter Zaitsev
Goal Driven Performance Optimization, Peter ZaitsevFuenteovejuna
 
Facebook, Robert Johnson
Facebook, Robert JohnsonFacebook, Robert Johnson
Facebook, Robert JohnsonFuenteovejuna
 
BedRest Study - Pilot Prezentation
BedRest Study - Pilot PrezentationBedRest Study - Pilot Prezentation
BedRest Study - Pilot PrezentationPavel Boháček
 
Динамика DDoS-атак в России, Александр Лямин
Динамика DDoS-атак в России, Александр ЛяминДинамика DDoS-атак в России, Александр Лямин
Динамика DDoS-атак в России, Александр ЛяминFuenteovejuna
 
Масштабируемая система голосования на базе PostgreSQL PgQ, Сергей Нековаль
Масштабируемая система голосования на базе PostgreSQL PgQ, Сергей НековальМасштабируемая система голосования на базе PostgreSQL PgQ, Сергей Нековаль
Масштабируемая система голосования на базе PostgreSQL PgQ, Сергей НековальFuenteovejuna
 
Cloud APIs - обзор API западных провайдеров и API Scalaxy, Нат Гаджибалаев
Cloud APIs - обзор API западных провайдеров и API Scalaxy, Нат ГаджибалаевCloud APIs - обзор API западных провайдеров и API Scalaxy, Нат Гаджибалаев
Cloud APIs - обзор API западных провайдеров и API Scalaxy, Нат ГаджибалаевFuenteovejuna
 

Viewers also liked (17)

Shared Personalization Service - How To Scale to 15K RPS, Patrice Pelland
Shared Personalization Service - How To Scale to 15K RPS, Patrice PellandShared Personalization Service - How To Scale to 15K RPS, Patrice Pelland
Shared Personalization Service - How To Scale to 15K RPS, Patrice Pelland
 
Профилирование памяти в приложениях на Python, Антон Грицай
Профилирование памяти в приложениях на Python, Антон ГрицайПрофилирование памяти в приложениях на Python, Антон Грицай
Профилирование памяти в приложениях на Python, Антон Грицай
 
Extreme Cloud Storage on FreeBSD, Андрей Пантюхин
Extreme Cloud Storage on FreeBSD, Андрей ПантюхинExtreme Cloud Storage on FreeBSD, Андрей Пантюхин
Extreme Cloud Storage on FreeBSD, Андрей Пантюхин
 
Etl2
Etl2Etl2
Etl2
 
691 bx webxtools
691 bx webxtools691 bx webxtools
691 bx webxtools
 
Introduction to oracle(2)
Introduction to oracle(2)Introduction to oracle(2)
Introduction to oracle(2)
 
Sql group functions
Sql group functionsSql group functions
Sql group functions
 
Сервер-агрегатор на python (аля Xscript FEST), Сумин Андрей, Сабуренков Михаи...
Сервер-агрегатор на python (аля Xscript FEST), Сумин Андрей, Сабуренков Михаи...Сервер-агрегатор на python (аля Xscript FEST), Сумин Андрей, Сабуренков Михаи...
Сервер-агрегатор на python (аля Xscript FEST), Сумин Андрей, Сабуренков Михаи...
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web design
 
Ch07
Ch07Ch07
Ch07
 
Goal Driven Performance Optimization, Peter Zaitsev
Goal Driven Performance Optimization, Peter ZaitsevGoal Driven Performance Optimization, Peter Zaitsev
Goal Driven Performance Optimization, Peter Zaitsev
 
Facebook, Robert Johnson
Facebook, Robert JohnsonFacebook, Robert Johnson
Facebook, Robert Johnson
 
BedRest Study - Pilot Prezentation
BedRest Study - Pilot PrezentationBedRest Study - Pilot Prezentation
BedRest Study - Pilot Prezentation
 
Динамика DDoS-атак в России, Александр Лямин
Динамика DDoS-атак в России, Александр ЛяминДинамика DDoS-атак в России, Александр Лямин
Динамика DDoS-атак в России, Александр Лямин
 
Vpnsetup
VpnsetupVpnsetup
Vpnsetup
 
Масштабируемая система голосования на базе PostgreSQL PgQ, Сергей Нековаль
Масштабируемая система голосования на базе PostgreSQL PgQ, Сергей НековальМасштабируемая система голосования на базе PostgreSQL PgQ, Сергей Нековаль
Масштабируемая система голосования на базе PostgreSQL PgQ, Сергей Нековаль
 
Cloud APIs - обзор API западных провайдеров и API Scalaxy, Нат Гаджибалаев
Cloud APIs - обзор API западных провайдеров и API Scalaxy, Нат ГаджибалаевCloud APIs - обзор API западных провайдеров и API Scalaxy, Нат Гаджибалаев
Cloud APIs - обзор API западных провайдеров и API Scalaxy, Нат Гаджибалаев
 

Similar to Java

Intoduction to java
Intoduction to javaIntoduction to java
Intoduction to javajalinder123
 
Dr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to javaDr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to javaDrRajeshreeKhande
 
Java interview question
Java interview questionJava interview question
Java interview questionsimplidigital
 
Java introduction
Java introductionJava introduction
Java introductionSagar Verma
 
Java Tutorial to Learn Java Programming
Java Tutorial to Learn Java ProgrammingJava Tutorial to Learn Java Programming
Java Tutorial to Learn Java Programmingbusiness Corporate
 
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...Mr. Akaash
 
Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1Qualys
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java SlidesVinit Vyas
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
TechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdfTechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdfTechSearchWeb
 
J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01Jay Palit
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkMohit Belwal
 

Similar to Java (20)

Intoduction to java
Intoduction to javaIntoduction to java
Intoduction to java
 
Dr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to javaDr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to java
 
Java interview question
Java interview questionJava interview question
Java interview question
 
Java introduction
Java introductionJava introduction
Java introduction
 
Java (1)
Java (1)Java (1)
Java (1)
 
Java Tutorial to Learn Java Programming
Java Tutorial to Learn Java ProgrammingJava Tutorial to Learn Java Programming
Java Tutorial to Learn Java Programming
 
Java presentation
Java presentationJava presentation
Java presentation
 
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...
 
Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java Slides
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
TechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdfTechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdf
 
JAVA First Day
JAVA First DayJAVA First Day
JAVA First Day
 
Java 2 computer science.pptx
Java 2 computer science.pptxJava 2 computer science.pptx
Java 2 computer science.pptx
 
J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
 
Introduction of java
Introduction  of javaIntroduction  of java
Introduction of java
 
Chapter 1 java
Chapter 1 java Chapter 1 java
Chapter 1 java
 
TechSearchWeb.pdf
TechSearchWeb.pdfTechSearchWeb.pdf
TechSearchWeb.pdf
 

Java

  • 1. Java How to find, install and begin to use the Java programming language.
  • 2. A word or two on the history of some old fashion programming languages A small history of Java… How do I install it on my computer? How do I use what I just installed? What we’re going to cover
  • 3. A short look at some old school languages, BASIC, C and C++ It all begins in the sixties…
  • 4. BASIC BASIC stands for Beginner’s All-purpose Symbolic Instruction Code. It was designed in 1963 at Dartmouth college. It was designed to make it easy for non-technical people to write computer programs. BASIC programs were like grocery lists. You told the program what you wanted to do and it did it in order. BASIC was Interpreted.
  • 5. C and C++ Developed in the early seventies, “C” became the de-facto language for microcomputer programming in the seventies and eighties. “C” was not interpreted, it was compiled. __________ Later, in the early eighties, C++ introduced object orientation to the C world. Originally called “C with Classes”, Bjarne Stroustrup developed the additions to C that, in 1985, became C++. OO is when programmers try to mimic the real world more closely and make programs act like “objects” and not just be grocery lists.
  • 6. So, what have we learned? 1. BASIC was an interpreted programming language 2. “C” was a compiled programming language 3. “C++” brought object orientation to “C”
  • 7. Say goodbye to the seventies and welcome to a short (but hopefully informative) history of the Java programming language Authentic Seventies Nerds
  • 8.
  • 9. James Gosling began developing Java beginning in 1991 It was first called “Project Green” and ‘Oak” First developed for remote cable TV boxes James Naughton creates “HotJava” in 1995. it’s a web browser that lets you run “Applets”. The entire browser is written in Java. In 1998 Java 1.2 is released Java just released version 1.6 or J2SE 6… James Gosling Circa 1971 James Gosling Today
  • 10. Java Buzzwords Simple Object Oriented Architecture Neutral Portable Multithreaded High Performance – JIT Buzzwords glommed from the Core Java 2 book verbatim
  • 11. FREE
  • 12. Is Java Interpreted or Compiled?
  • 13. Is Java Interpreted or Compiled? BOTH!! Java programs are compiled to Bytecode Bytecode is then interpreted by a JVM, or Java Virtual machine. The virtual machine is what runs your program It’s the JVM that cares about your Operating system, NOT THE PROGRAM! WORA - Write Once, Run Anywhere!
  • 14. Is Java Object Oriented?
  • 15. Is Java Object Oriented? YES! Every bit of code in a Java program is in a “Class” Code Reuse, Encapsulation, Polymorphism, Inheritance
  • 16.
  • 18. Downloading a Java JDK You want a JDK, not just a JRE Create a “Temp” directory on your PC or laptop Go to http://java.sun.com Go to the “Popular Downloads” section and select “Java SE” Select a JDK without Netbeans (We’ll talk about this later) Agree to the accept the use policy Right Click and Save the Offline Windows JDK to your temp dir
  • 19. Installing a Java JDK Go to your “Temp” dir using Windows Explorer Make sure no other apps are running and double click the install program you just downloaded. Follow the steps. I install in C:Java Watch fom multiple JREs and JDKs! In Windows the Registry runs the show now, not the JAVA_HOME env variable Test with a Command Prompt Window and “java –version” Add C:Java”Java ver”bin to your PATH var Be sure to add “current directory” to the CLASSPATH (if you had one)
  • 20. Now, Lets test it DOS - Command Prompt Make a directory structure Type “Edit” and Voila PSVM Test JAVAC and JAVA Create Bytecode ( the *.class file) with “Javac” Run Program with “Java”
  • 21. If we were lucky we got something that looks like this…
  • 22. Help on the Web http://java.sun.com/javase/6/docs/api/ http://www.javaranch.com http://java.sun.com/docs/books/tutorial/ http://www.sorcon.com/java2/ http://remus.rutgers.edu/freestuff Got an Error? Just type it verbatim into Google and you usually can find the answer to your question or solve your problem. Wikipedia is a good place to get background and history On anything, and Java is no exception
  • 23. Remember…. Java is both compiled and interpreted Java is Object Oriented http://java.sun.com is Java’s home You want the Java Development Kit (JDK) , not a JRE or J2EE Take your time, use temp directories for setup files Test with a simple “Hello World” after you install Use the Web for help (Google errors, javaranch, etc.)
  • 24. THANK YOUhttp:remus.rutgers.edujavaworkshops Any questions or comments can be sent to me At biglars@cs.rutgers.edu Be Good Now… ©2007 Rutgers University & Lars Sorensen