版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、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 were going to cover,A short look at some old school la
2、nguages, BASIC, C and C+ It all begins in the sixties,BASIC,BASIC stands for Beginners 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
3、 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+
4、 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 hav
5、e we learned?,BASIC was an interpreted programming language “C” was a compiled programming language “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
6、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. its a web browser that lets you run “Applets”. The entire browser is written in Java. In 1998 Java 1.2 is released Java just releas
7、ed 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?,BOT
8、H!,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,Its the JVM that cares about your Operating system, NOT THE PROGRAM! WORA - Write Once, Run Anywhere!,Is Java Object Oriented?,Is Java Object Orient
9、ed?,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 Go to the “Popular Downloads” section and select “Java SE”
10、 Select a JDK without Netbeans (Well 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
11、 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
12、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:/remus.rut
13、/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 is Javas 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 th
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 继发性多发性关节病
- 眼底病早期诊断与治疗进展
- 芪苈强心胶囊结合倍他乐克治疗扩张型心肌病的临床疗效分析
- 2027年寒假开学摸底考试九年级地理易错题卷及答案
- 生脉活血汤联合达格列净治疗冠心病合并型糖尿病的临床疗效观察
- 医院内科低钙血症临床思维诊疗指南
- 八年级生物模拟卷(2026-2027学年下学期期末考试)
- 八年级化学测试卷(2026-2027学年上学期期末考试)
- 2027年春季开学考试高三地理检测卷及答案解析
- 2027年春季开学考试九年级历史专题训练卷及答案解析
- 2026浙江宁波市宁海县国有企业招聘考试参考题库及答案解析
- 2026年中国抗体药物市场现状调研分析及前景预测报告
- 2026消防宣传月培训课件(含火灾案例)
- 2026医工交叉研究发展分析及跨学科创新预测报告
- 2024年12月规培结业考试呼吸内科胸腔积液康复基础巩固题及答案
- 基于PDCA循环的长期医嘱口服药发放质量改进与安全管理实践
- 家装托管服务合同协议书
- 2026河南政治高考真题试卷(含答案解析)
- 2026年4月自考00144企业管理概论试题试题及答案含评分参考
- 35kv集电线路运行规程
- 2024中医内科临床诊疗指南眩晕病(原发性高血压)
评论
0/150
提交评论