160 likes | 398 Views
Introduce to Java. Outline. History of Java Something about Java Brief introduction to Java programming Java Technologies Tools & Tips. History of Java. Java technology was created as a programming tool in a small, closed-door project in 1991
E N D
Outline • History of Java • Something about Java • Brief introduction to Java programming • Java Technologies • Tools & Tips
History of Java • Java technology was created as a programming tool in a small, closed-door project in 1991 • But creating a new language wasn't even the point • In 1991, this new language was called “Oak” • The first target of Java was to create an interactive environment for digital cable TV. But it failed. So it turn to the Internet
Something about Java • Java technology is both a programming language and a platform • The Java programming language is a high-level language • Simple • Architecture neutral • Object oriented • Portable • Distributed • High performance • Interpreted • Multithreaded • Robust • Dynamic • Secure
The Java Platform • The Java platform has two components: • The Java Virtual Machine (Java VM) • The Java Application Programming Interface (Java API)
Editions of Java Tech. • J2SE (Java 2 Standard Edition) • Includes basic APIs and runtime • J2ME (Java 2 Micro Edition) • A highly optimized Java runtime environment • Specifically addresses the vast consumer space, which covers the range of extremely tiny commodities • J2EE (Java 2 Enterprise Edition) • J2EE technology and its component based model simplifies enterprise development and deployment • to enable development of secure, robust and interoperablebusiness applications
The First Step • Development environment • J2SDK (1.3 or 1.4) • Java API doc (Do not try to access it online) • Runtime environment • J2RE (Java 2 Runtime Environment) • Install it if you want to run any java application or applet without installing J2SDK • IDE? • JBuilder • NetBeans/Forte • Eclipse/WSAD • IntelliJ
Java Technologies • Web • Applet/Java Web start • Servlet/JSP • Enterprise • EJB (Enterprise Java Bean) • JMS (Java Messaging Service) • JDBC (Java database connection) • Security • JCE (Java Cryptography Extension) • JSSE (Java secure socket extension) • Image, Speech & Multimedia • JAI (Java Advanced Imaging) • Java 3D • JMF (Java Media Framework) • Java Sound API • Java Speech API
JAI • Function of JAI • Image I/O • Color space • Image Manipulation • Image Enhancement • Geometric Image Manipulation • Image Analysis • Graphics Rendering (2D) • Applications of JAI • Defense and Intelligence • Geospatial Data Processing • Document Image Processing • Bioinformatics • Applied Research • Digital Photography • E-Commerce and Retail Teaching
JMF • The Java Media Framework API (JMF) • enables audio, video and other time-based media to be added to Java applications and applets • can capture, playback, stream and trans code multiple media formats • Supported Formats • AIFF • AVI • GSM • HotMedia (IBM) • MIDI • MPEG-1 (An MPEG-4 extension is provided by IBM) • QuickTime (Apple) • Wave • AU (Sun) • RTP – H.261, H.263, G.721, G.723 … 視訊會議壓縮標準
Development tools for Java • Borland JBuilder • The newest version is 9 • Ease to develop GUI applications in Java • Commercial product (costs money) • NetBeans (www.netbeans.org) • Ease to develop GUI applications in Java • Free & open source • Eclipse (www.eclipse.org) • Lacks of visualized GUI design tools • Ease to management codes & projects • Good integration in embedded tools • Open & Highly extendable • Free & Open source • Intelli J
Tips • It is a good habit to add JavaDoc comments in your codes • Do not put too many classes into a single source file (one source file, one class) • Make code more reusable • Think more before you start it • Do not apply the old function-based thinking to your java program
References • Thinking in Java • http://www.mindview.net/Books/TIJ/ • Home site of Java • http://www.javasoft.com • Useful techniques for enterprise java • http://www.theserverside.com • Useful open source Java • http://jakarta.apache.org Julian Shen 提供 井民全修改