1 UCLA PIC 20A Java Programming

Total Page:16

File Type:pdf, Size:1020Kb

1 UCLA PIC 20A Java Programming UCLA PIC 20A PIC 20 A – Course Organization Java Programming zInstructor: Ivo Dinov, z http://www.stat.ucla.edu/~dinov/courses_students.html Asst. Prof. In Statistics, Neurology and z Program in Computing Summer2002\HTMLs\PIC20A.html z Teaching Assistant: Yon Seo Kim, PIC zJava Demo: C:\Ivo.dir\LONI_Viz\LONI_Viz_MAP_demo\run.bat University of California, Los Angeles, Summer 2002 http://www.stat.ucla.edu/~dinov/ PIC 20A, UCLA, Ivo Dinov Slide 1 PIC 20A, UCLA, Ivo Dinov Slide 2 Chapter 1 – Getting Started Chapter 1 – Getting Started z What is the Java platform and what it can do? z Java is a high-level language that is characterized by:- z How to compile and run two simple programs on the • Simple • Robust • High performance Windows, the UNIX/Linux or the Mac OS X platforms. • Object oriented • Secure • Multithreaded z Software Development Kits (SDKs) provided by Sun • Distributed • Architecture neutral • Dynamic Microsystems include a minimal set of tools to let you run and compile your programs. • Interpreted • Portable z Advanced developers are encouraged to use a z Most programming languages, you either compile or professional Integrated Development Environment interpret a program to run it on your computer. In (IDE). Java a program is both compiled and interpreted. Slide 3 PIC 20A, UCLA, Ivo Dinov Slide 4 PIC 20A, UCLA, Ivo Dinov Chapter 1 – Getting Started Java Platform z Bytecodes is the machine code instructions for the Java z A platform is the hardware or software environment in Virtual Machine (Java VM). Every Java interpreter is an which a program runs (W2K, Linux, Solaris, MacOS). implementation of the Java VM. Most platforms can be described as a combination of the operating system and hardware. z Write once, run anywhere. As long as a computer has a Java VM, the same Java program should run on z Java platform is software-only platform that runs on top Windows, Solaris, or Mac. of other, hardware-based platforms and has these 2 components: TThe Java Virtual Machine (Java VM) TThe Java Application Programming Interface (API) Slide 5 PIC 20A, UCLA, Ivo Dinov Slide 6 PIC 20A, UCLA, Ivo Dinov 1 Java Platform Java VM & Java API TThe Java Virtual Machine (Java VM) z The Java VM is the base for the Java platform and is TThe Java Application Programming Interface ported onto various hardware-based platforms. (API) z The Java API is a large collection of ready-made software components that provide many useful capabilities, such as graphical user interface (GUI) widgets. The Java API is grouped into libraries of related classes and interfaces; these libraries are known as packages. Slide 7 PIC 20A, UCLA, Ivo Dinov Slide 8 PIC 20A, UCLA, Ivo Dinov Native vs. Portable Code Java Applets & Applications z Native code is code that, after you compile it, runs on a z The most common types of programs written in the Java specific hardware platform. programming language are applets and applications. z An applet is a program that adheres to certain conventions that z As a platform-independent (portable) environment, the allow it to run within a Java-enabled web browser. Java platform can be a bit slower than native code. z Example: C:/Ivo.dir/UCLA_Classes/Applets.dir/DiceApplet.htm However, smart compilers, well-tuned interpreters, and z An application is a standalone program that runs directly on the just-in-time bytecode compilers can bring performance Java platform. A special kind of application known as a server close to that of native code without threatening serves and supports clients on a network. portability. z Servers Ex: Web servers, Mail servers, Print servers. z Servlets, similar to applets, are run-time extensions of applications. Instead of working in browsers, though, servlets run within Java Web servers, configuring or tailoring the server. Slide 9 PIC 20A, UCLA, Ivo Dinov Slide 10 PIC 20A, UCLA, Ivo Dinov Java 2 Platform SE v 1.4 First Java Program – HelloWorldApp z Your first program, HelloWorldApp , will simply display the greeting “Hello World!” To create this program, you complete each of the following steps. z Create a source file. A source file contains text, written in the Java programming language, that you and other programmers can understand. You can use any text editor to create and to edit source files. z Compile the source file into a bytecode file. The compiler takes your source file and translates the text into instructions that the Java VM can understand. The compiler converts these instructions into a bytecode file. Slide 11 PIC 20A, UCLA, Ivo Dinov Slide 12 PIC 20A, UCLA, Ivo Dinov 2 First Java Program – HelloWorldApp First Java Applet – HelloWorld z /** z Applet called HelloWorld , displaying the greeting “Hello z * The HelloWorldApp class implements an application World!” Unlike HelloWorldApp , however, the applet runs in a Java-enabled Web browser, such as the HotJava TM z * that displays "Hello World!"to the standard output. browser, Netscape Navigator, or Microsoft Internet z */ Case Explorer. z public class HelloWorldApp { Sensitive z public static void main(String [] args)) { z Create a source file, compile the source file, and run the z program. However, unlike for an application, you must //Display "Hello World!" also create an HTML file. z System.out.println("Hello World!"); z } Do this example in a DOS shell or Explorer z } javac HelloWorldApp.java java HelloWorldApp Slide 13 PIC 20A, UCLA, Ivo Dinov Slide 14 PIC 20A, UCLA, Ivo Dinov First Java Applet – HelloWorld.java First Java Applet – HelloWorld z HTML file to accompany your applet. HelloWorld.html z z <HTML> import java.applet.Applet; z z <HEAD> import java.awt.Graphics; z <TITLE>A Simple Program</TITLE> zpublic class HelloWorld extends Applet { z </HEAD> z z <BODY> public void paint(Graphics g) { z z Here is the output of my program: //Display "Hello world!" z <APPLET CODE="HelloWorld.class“ z g.drawString("Hello world!",50,25); WIDTH=150 HEIGHT=25 > z z </APPLET> } z z </BODY> } z </HTML> Slide 15 PIC 20A, UCLA, Ivo Dinov Slide 16 PIC 20A, UCLA, Ivo Dinov Running Java Applet – HelloWorld Exceptions … z Compiling: z Exception in thread “main ” z java.lang.NoClassDefFoundError:HelloWorldApp javac HelloWorld.java z If you receive this error, the interpreter cannot find your bytecode z The compiler should generate a Java bytecode file, file, HelloWorldApp.class . HelloWorld.class z One of the places java tries to find your bytecode file is your current directory. So, if your bytecode file is in C drive, you should change z Although you can use a Web browser to view your applets, your current directory to that. To change your directory, type the you may find it easier to test your applets by using the following command at the prompt and press Enter : simple appletviewer application that comes with the Java z cd c: platform. To view the elloWorld applet using appletviewer z The prompt should change to C:. If you enter dir at the prompt, you enter at the prompt: should see your .java and .class files. Now again enter zappletviewer HelloWorld.html z java HelloWorldApp znetscape HelloWorld.html z Still have problems, change your CLASSPATH variable. z set CLASSPATH= Slide 17 PIC 20A, UCLA, Ivo Dinov Slide 18 PIC 20A, UCLA, Ivo Dinov 3 First Java Application Program First Java Applet z HelloWorldApp , displays the greeting “Hello World!” z HelloWorldA, displays the greeting Hello World! in a To createthis program: java enabled browser z Create a source file – text written in the Java that others z Create a source file – notepad HelloWorld.java can understand. Use any text editor to generate/edit source files – *.java. notepad Hello.html. z z Compile the source file into a bytecode file – javac Compile the source – javac HelloWorld.java translates the source/text into instructions that the Java makes – HelloWorld.class. Virtual Machine can understand, bytecode file – *.class. z Run the program – appletviewer Hello.html. z Run the program contained in the bytecode file via Java interpreter – carries out the instructions by translating them z E.g.,C:\Ivo.dir\UCLA_Classes\Summer2002\PIC20A\Examples\JavaTutorialExa into instructions that your computer can understand. mples\getStarted\applet\example\HelloWorld.java && Hello.html z E.g.,C:\Ivo.dir\UCLA_Classes\Summer2002\PIC20A\Examples\JavaTutorialExa mples\getStarted\application\example\HelloWorldApp.java Slide 19 PIC 20A, UCLA, Ivo Dinov Slide 20 PIC 20A, UCLA, Ivo Dinov HelloWorld – Program description HelloWorld – Program description zKinds of Comments: zDefining a Class: z /* text */ z class HelloWorldApp { z Compiler ignores everything from opening /* to closing */. public static void main(String [] args)){ z /** documentation */ System.out.println("Hello World!"); // Display the string z This style indicates a documentation comment (doc comment, for } short). Compiler ignores all the text within the comment. The SDK } javadoc tool uses doc comments to automatically generate docs. z A class is the basic building block of an object-oriented language, z Example:C:\Ivo.dir\UCLA_Classes\Summer2002\PIC20A\Examples\JavaTutor ialExamples\getStarted\applet\example\doc\index.html such as Java. A class is a blueprint that describes the state and the behavior associated with instances of that class. When you z // text instantiate a class, you create an object that has the same states z The compiler ignores everything from the //to the end of the line. and behaviors as other instances of the same class. z The state associated with a class or an object is stored in member variables. Slide 21 PIC 20A, UCLA, Ivo Dinov Slide 22 PIC 20A, UCLA, Ivo Dinov HelloWorld – Program description HelloWorld – Program description zDefining a Class: zMain method of a Class: z The behavior associated with a class or an object is implemented z The entry point of every Java application is its main method.
Recommended publications
  • Introduction to Java
    Introduction to Java James Brucker What is Java? Java is a language for writing computer programs. it runs on almost any "computer". desktop mobile phones game box web server & web apps smart devices What Uses Java? OpenOffice & LibreOffice (like Microsoft Office) Firefox Google App Engine Android MindCraft & Greenfoot IDE: Eclipse, IntelliJ, NetBeans How Java Works: Compiling 1. You (programmer) write source code in Java. 2. A compiler (javac) checks the code and translates it into "byte code" for a "virtual machine". Java Java source Hello.java javac Hello.class byte code code compiler public class Hello { public Hello(); aload_0 public static void main( String [ ] args ) { invokespecial #1; //Method java/ System.out.println( "I LOVE programming" ); lang/Object."<init>":()V return } main(java.lang.String[]); } getstatic #2; //Field ... How Java Works: Run the Bytecode 3. Run the byte code in a Java Virtual Machine (JVM). 4. The JVM (java command) interprets the byte code and loads other code from libraries as needed. Java I LOVE programming byte Hello.class java code java virtual public Hello(); aload_0 machine invokespecial #1; //Method java/lang/Object."<init>":()V return main(java.lang.String[]); Other java classes, getstatic #2; //Field ... saved in libraries. Summary: How Java Works 1. You (programmer) write program source code in Java. 2. Java compiler checks the code and translates it into "byte code". 3. A Java virtual machine (JVM) runs the byte code. Libraries Hello, javac Hello.class java Hello.java World! Java compiler byte code JVM: Program source - load byte code execution program - verify the code - runs byte code - enforce security model How to Write Source Code? You can use any editor to write the Java source code.
    [Show full text]
  • Configuring & Using Apache Tomcat 4 a Tutorial on Installing and Using
    Configuring & Using Apache Tomcat 4 A Tutorial on Installing and Using Tomcat for Servlet and JSP Development Taken from Using-Tomcat-4 found on http://courses.coreservlets.com Following is a summary of installing and configuring Apache Tomcat 4 for use as a standalone Web server that supports servlets 2.3 and JSP 1.2. Integrating Tomcat as a plugin within the regular Apache server or a commercial Web server is more complicated (for details, see http://jakarta.apache.org/tomcat/tomcat-4.0-doc/). Integrating Tomcat with a regular Web server is valuable for a deployment scenario, but my goal here is to show how to use Tomcat as a development server on your desktop. Regardless of what deployment server you use, you'll want a standalone server on your desktop to use for development. (Note: Tomcat is sometimes referred to as Jakarta Tomcat since the Apache Java effort is known as "The Jakarta Project"). The examples here assume you are using Windows, but they can be easily adapted for Solaris, Linux, and other versions of Unix. I've gotten reports of successful use on MacOS X, but don't know the setup details. Except when I refer to specific Windows paths (e.g., C:\blah\blah), I use URL-style forward slashes for path separators (e.g., install_dir/webapps/ROOT). Adapt as necessary. The information here is adapted from More Servlets and JavaServer Pages from Sun Microsystems Press. For the book table of contents, index, source code, etc., please see http://www.moreservlets.com/. For information on servlet and JSP training courses (either at public venues or on-site at your company), please see http://courses.coreservlets.com.
    [Show full text]
  • Solutions to Exercises
    533 Appendix Solutions to Exercises Chapters 1 through 10 close with an “Exercises” section that tests your understanding of the chapter’s material through various exercises. Solutions to these exercises are presented in this appendix. Chapter 1: Getting Started with Java 1. Java is a language and a platform. The language is partly patterned after the C and C++ languages to shorten the learning curve for C/C++ developers. The platform consists of a virtual machine and associated execution environment. 2. A virtual machine is a software-based processor that presents its own instruction set. 3. The purpose of the Java compiler is to translate source code into instructions (and associated data) that are executed by the virtual machine. 4. The answer is true: a classfile’s instructions are commonly referred to as bytecode. 5. When the virtual machine’s interpreter learns that a sequence of bytecode instructions is being executed repeatedly, it informs the virtual machine’s Just In Time (JIT) compiler to compile these instructions into native code. 6. The Java platform promotes portability by providing an abstraction over the underlying platform. As a result, the same bytecode runs unchanged on Windows-based, Linux-based, Mac OS X–based, and other platforms. 7. The Java platform promotes security by providing a secure environment in which code executes. It accomplishes this task in part by using a bytecode verifier to make sure that the classfile’s bytecode is valid. 8. The answer is false: Java SE is the platform for developing applications and applets. 533 534 APPENDIX: Solutions to Exercises 9.
    [Show full text]
  • Intro to Java
    Introduction to Java 1 / 10 Java I Developed for home appliances - cross-platform VM a key feature I Originally called Oak I Gained notariety with HotJava web browser that could run “programs over the internet” called applets I Gained popularity when Netscape included Java VM in Navigator web browser I JavaScript is purely a marketing label meant to capitalize on Java hype - there is no relationship between Java and JavaScript I Java is a general-purpose application programming language. I Java applets are now very rare. The bulk of Java code runs on (web) servers. 2 / 10 The Java Programming Language I Java is part of the C family. Same syntax for variable declarations, control structures I Java came at a time when C++ was king. C++ was a notoriously complex object-oriented extension to C. I Java improved on several key aspects of C++, greatly simplifying software development I Two most compelling features of Java were cross-platform deployablility (“write once, run anwhere”) and autoatic garbage collection I These two advantages, especially garbage collection, drove Java adoption 3 / 10 The Java Platform Three components of the Java platform: I The Java programming language I The Java Virtual Machine (JVM) I The Java standard library Java is both compiled and interpreted: I Java source files (ending in .java) are compiled to java bytecode files (ending in .class) I Java bytecode is then interpreted (run) by the JVM I Compiling and running can be done on different machines – bytecode is portable (more precisely, the JVM on each platform accepts the same bytecode).
    [Show full text]
  • Java Programming 24-Hour Trainer, Second Edition
    11 Introducing Java During the last two decades Java has maintained its status as one of the most popular programming languages for everything from programming games to creating mission-critical applications, such as those for trading on Wall Street or controlling Mars rovers. For the current popularity chart see the Tiobe Index at http:// www.tiobe.com/index.php/content/paperinfo/tpci/index.html. In this lesson you are intro‐ duced to some of the very basic Java terms. You also download and install the Java Development Kit (JDK) and compile your first program. WHY LEARN JAVA? The Java programming language was originally created in 1995 by James Gosling from Sun Microsystems (acquired by Oracle Corporation in 2010). The goal was to provide a simpler and platform-independent alter‐ native to C++. Java programs run inside the Java Virtual Machine (JVM), which is the same on every platform from the application programmer’s perspective. You find out what platform independence means a little later, in the section “The Life Cycle of a Java Program”. For now, let’s look at some of the reasons why Java can be your language of choice. Java is a general-purpose programming language that’s used in all industries for almost any type of application. If you master it, your chancesCOPYRIGHTED of getting employed as a software MATERIAL developer will be higher than if you specialize in some domain-specific programming languages. There are more than nine million professional Java developers in the world, and the majority of them are ready to share their knowledge by posting blogs and articles or simply answering technical questions online.
    [Show full text]
  • 1 Compiling Java Programs
    CS 61B P. N. Hilfinger Basic Compilation: javac, gcc, g++ 1 Compiling Java Programs [The discussion in this section applies to Java 1.2 tools from Sun Microsystems. Tools from other manufac- turers and earlier tools from Sun differ in various details.] Programming languages do not exist in a vacuum; any actual programming done in any language one does within a programming environment that comprises the various programs, libraries, editors, debuggers, and other tools needed to actually convert program text into action. The Scheme environment that you used in CS61A was particularly simple. It provided a component called the reader, which read in Scheme-program text from files or command lines and converted it into internal Scheme data structures. Then a component called the interpreter operated on these translated pro- grams or statements, performing the actions they denoted. You probably weren’t much aware of the reader; it doesn’t amount to much because of Scheme’s very simple syntax. Java’s more complex syntax and its static type structure (as discussed in lecture) require that you be a bit more aware of the reader—or compiler, as it is called in the context of Java and most other “production” programming languages. The Java compiler supplied by Sun Microsystems is a program called javac on our systems. You first prepare programs in files (called source files) using any appropriate text editor (Emacs, for example), giving them names that end in ‘.java’. Next you compile them with the java compiler to create new, translated files, called class files, one for each class, with names ending in ‘.class’.
    [Show full text]
  • Java Platform, Standard Edition JDK Installation Guide
    Java Platform, Standard Edition JDK Installation Guide Release 16 F38287-01 March 2021 Java Platform, Standard Edition JDK Installation Guide, Release 16 F38287-01 Copyright © 1993, 2021, Oracle and/or its affiliates. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government end users are "commercial computer software" or "commercial computer software documentation" pursuant to the applicable Federal Acquisition
    [Show full text]
  • Openjdk & What It Means for the Java Developer
    OpenJDK & What it means for the Java Developer Dalibor Topić Java F/OSS Ambassador Sun Microsystems http://twitter.com/robilad [email protected] Java 2 Programming Language 3 Virtual Machine 4 Cross- platform Programming Environment 5 Community Of Communities 6 Pretty successful 7 ~1B LOC of Open Source Code written in it (acc. to ohloh.net) 8 That's just the visible space 9 What else happened in the last 10 years? 10 Open Source 11 From fringe to mainstream 12 Open Innovation across organizational boundaries 13 Remember shipping containers? 14 Changed the world 15 Radically reduced transaction costs 16 For material goods 17 Standardized measures 18 Optimization opportunities 19 Open Source does the same 20 For software components 21 Standardized Legal Containers 22 Permeable development 23 Lowered barrier to participation 24 Collaborative User Innovation 25 What else happened? 26 Linux 27 From fringe to mainstream 28 Cloud, Cluster, Server, Netbook, TV, Phone, ... 29 Anyone can create a Linux- based software platform 30 shipping yard, fleet & port in one 31 Organic growth 32 Cambrian explosion of Linux distros 33 Selective Pressure On Development Tools on Linux Strongly Favors Open Source 34 Manifests itself around: availability, integration, ease of use 35 Example: sudo aptitude install openjdk-6-jdk vs. many minutes of manual work 36 Example: sudo aptitude build-dep openjdk-6 vs. many hours of manual work 37 Open Source + Java + Linux 38 39 OpenJDK 7 40 JDK 7 41 Open Source 42 GPL v2 43 Classpath Exception 44 2006: From closed to open 45 First Step: Get the code out 46 Putting the effort in perspective 47 Mozilla 1.2M SLOCs 48 Eclipse 2.2M SLOCs 49 OpenJDK 3.5M SLOCs 50 Done within one year 51 Managing expectations 52 Pessimist extremists: Java will be forked to death! 53 Well, no.
    [Show full text]
  • Java Platform, Standard Edition Tools Reference
    Java Platform, Standard Edition Tools Reference Release 9 E61612-05 October 2017 Java Platform, Standard Edition Tools Reference, Release 9 E61612-05 Copyright © 1993, 2017, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency- specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S.
    [Show full text]
  • Icedtea and Icedtea-Web
    IcedTea and IcedTea-Web Andrew Overholt Principal Software Engineer Red Hat Canada 2011-11-03 1 ● IcedTea Persistent index will always show current point ● OpenJDK vs JDK ● What? ● Who? ● Why? JavaOne Slide Template Title ● Future ● IcedTea-Web Agenda ● What? ● History ● Why? ● Features ● Future ● Questions This presentation is designed to be used with audio as a primary mode of content delivery. If you have downloaded it, see notes section for rough notes on applicable slides (draft quality). For pdf, it should be at the end of the slide deck. OpenJDK vs JDK ● IcedTea ● OpenJDK vs JDK ● Deployment tools ● What? ● Serviceability tools ● Who? ● Why? ● HotSpot Virtual machine ● Future ● Interpreter ● JIT compiler ● IcedTea-Web JDK ● What? ● Tools (javac, javadoc, etc.) ● History OpenJDK ● Why? ● Class libraries ● Features Closed ● ● Future Public API 95%+ 5%+ ● Questions + Last heard, for OpenJDK7 and JDK7 What is IcedTea? ● IcedTea ● OpenJDK vs JDK ● What? ● Who? ● Why? …... ● Future ● IcedTea-Web ● What? ● History ● Why? ● Features IcedTea ● Future ● Questions Image sources: http://www.openclipart.org/detail/22436 http://www.openclipart.org/detail/22712 Some of the users... ● IcedTea ● OpenJDK vs JDK ● What? ● Who? ● Why? ● Future ● IcedTea-Web ● What? ● History ● Why? (IcedTea-Web only) ● Features ● Future ● Questions Some of the contributors... ● IcedTea ● OpenJDK vs JDK ● What? ● Who? ● Why? ● Future ● IcedTea-Web ● What? ● History ● Why? (IcedTea-Web only) ● Features ● Future (Indirectly through OpenJDK) ● Questions All logos are copyright by their respective owners Why was IcedTea created? ● IcedTea ● OpenJDK vs JDK ● What? ● Who? ● Why? ● Future ● IcedTea-Web Build ● What? ● History ● Why? ● Features (For the first release...) ● Future ● Questions Image sources: http://www.openclipart.org/detail/30223 To fix the build..
    [Show full text]
  • Lumada Data Catalog Product Manager Lumada Data Catalog V 6
    HITACHI Inspire the Next 2535 Augustine Drive Santa Clara, CA 95054 USA Contact Information : Lumada Data Catalog Product Manager Lumada Data Catalog v 6 . 0 . 0 ( D r a f t ) Hitachi Vantara LLC 2535 Augustine Dr. Santa Clara CA 95054 Component Version License Modified "Java Concurrency in Practice" book 1 Creative Commons Attribution 2.5 annotations BSD 3-clause "New" or "Revised" abego TreeLayout Core 1.0.1 License ActiveMQ Artemis JMS Client All 2.9.0 Apache License 2.0 Aliyun Message and Notification 1.1.8.8 Apache License 2.0 Service SDK for Java An open source Java toolkit for 0.9.0 Apache License 2.0 Amazon S3 Annotations for Metrics 3.1.0 Apache License 2.0 ANTLR 2.7.2 ANTLR Software Rights Notice ANTLR 2.7.7 ANTLR Software Rights Notice BSD 3-clause "New" or "Revised" ANTLR 4.5.3 License BSD 3-clause "New" or "Revised" ANTLR 4.7.1 License ANTLR 4.7.1 MIT License BSD 3-clause "New" or "Revised" ANTLR 4 Tool 4.5.3 License AOP Alliance (Java/J2EE AOP 1 Public Domain standard) Aopalliance Version 1.0 Repackaged 2.5.0 Eclipse Public License 2.0 As A Module Aopalliance Version 1.0 Repackaged Common Development and 2.5.0-b05 As A Module Distribution License 1.1 Aopalliance Version 1.0 Repackaged 2.6.0 Eclipse Public License 2.0 As A Module Apache Atlas Common 1.1.0 Apache License 2.0 Apache Atlas Integration 1.1.0 Apache License 2.0 Apache Atlas Typesystem 0.8.4 Apache License 2.0 Apache Avro 1.7.4 Apache License 2.0 Apache Avro 1.7.6 Apache License 2.0 Apache Avro 1.7.6-cdh5.3.3 Apache License 2.0 Apache Avro 1.7.7 Apache License
    [Show full text]
  • Cross-Compiling Openjdk
    Cross-compiling OpenJDK Robert Schuster 2010-10-27 ELCE Europe 2010 Why? ● Beagleboard ● 500 MHz ● 256 MiB RAM ● FPU 2010-10-27 ELCE Europe 2010 Why? ● Beagleboard ● 500 MHz ● 256 MiB RAM ● FPU This was 2008! 2010-10-27 ELCE Europe 2010 Why? ● On shelves: – ARM Cortex A9 ● Dual core ● 0.8-2.0 GHz ● Future: – ARM Cortex A15 – Targeting in particular servers and heavy-duty wifi equipment 2010-10-27 ELCE Europe 2010 IcedTea-OpenJDK relationship ● Provides build harness for OpenJDK ● Makes build independent of non-free sw ● Usage of system provided libraries (zlib, libpng, …) ● Replacement for few non-free bits (color mgmt, WebStart launcher) 2010-10-27 ELCE Europe 2010 IcedTea-OpenJDK relationship ● Incubator/Testbed for new technologies – XRender support patches – C++-based interpreter (zero) – LLVM-based JIT (shark) – Architecture-specific enhancements ● Thumb2EE port ● MIPS/Loongson port 2010-10-27 ELCE Europe 2010 IcedTea-OpenJDK relationship ● Strives for upstream (= OpenJDK) inclusion – Zero: October 2009 – Shark: August 2010 ● Earlier those implementations passed the TCK 2010-10-27 ELCE Europe 2010 Practical outcome for packagers ● IcedTea turns make MANY=1 CRAZY=1 THINGS=1 (including assumptions about existence of certain tools in path) 2010-10-27 ELCE Europe 2010 Practical outcome for packagers ● ...into ./configure make make install 2010-10-27 ELCE Europe 2010 Practical outcome for packagers ● ...almost: ./configure --crazy-things=here ● But this really helps: ./configure --help 2010-10-27 ELCE Europe 2010 Non-cross build Prerequisite:
    [Show full text]