Working with Libraries

Slides:



Advertisements
Similar presentations
Getting Started To start the process, procure the Digital Signature Certificate Enrollment Kit from Signature World or its Registration Authorities. The.
Advertisements

Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Access Lesson 2 Creating a Database
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
Aspect-Oriented Software Development (AOSD) Additional Material Start Writing in AspectJ.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
Eclipse for Jena & ARQ. File needed Jena ( ARQ-2.2 (
Create a New Application and Project Open the Create Application dialog. Enter the application name of your choice and the directory. Select No Template.
Create A Visual Studio Template
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
Access Tutorial 10 Automating Tasks with Macros
Beginning Programming with the Visual Studio.NET Environment.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
®® Microsoft Windows 7 Windows Tutorial 6 Searching for Information and Collaborating with Others.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Google Maps Android API v2 吳俊興 國立高雄大學 資訊工程學系 CSF645 – Mobile Computing 行動計算
TUTORIAL # 2 INFORMATION SECURITY 493. LAB # 4 (ROUTING TABLE & FIREWALLS) Routing tables is an electronic table (file) or database type object It is.
PARSING FACEBOOK DATA FOR ANDROID 1. Step by Step  Import Android SDK  Get the hash key  Create a new app  Create a new project in Eclipse 
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Setting up Eclipse Computer Organization I 1 August 2009 ©2009 McQuain Getting Eclipse for C/C++ Development Go to and click on Download.
Presented By: Muhammad Tariq Software Engineer Android Training course.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Oracle Data Integrator Workflow Management: The Packages.
MS-Word XP Lesson 9. Mail Merge The Mail Merge feature combines a list of data, typically name and address that is contained in one file with a document.
Hello World in the Forte IDE An introduction to the Forte IDE (integrated development environment) writing the classic “Hello World” program in Java.
Unit 1: Java and Eclipse The Eclipse Development Environment.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Setting Up Eclipse. What is Eclipse? Eclipse is a free, downloadable software that allows us to create, compile, and run JAVA programs.
Android Hello World 1. Click on Start and type eclipse into the textbox 2.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
® Microsoft Office 2013 Access Creating a Database.
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
DEVS M&S Tutorial with eclipse IDE Chungman Seo
Installing Repast in the Eclipse IDE Charlie Gieseler 6/28/04.
First Venture into the Android World Chapter 1 Part 2.
Installing JDK Vijayan Sugumaran Department of DIS Oakland University.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Information Security 493. Lab # 4 (Routing table & firewalls) Routing tables is an electronic table (file) or database type object that is stored in a.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
Introduction to Eclipse Programming with an Integrated Development Environment.
Building the CarryDrop simulation in Eclipse Creating a new project with existing code from John Murphy’s RePast tutorial.
Intoduction to Andriod studio Environment With a hello world program.
Time to apply stuff… Faculty of Mathematics and Physics Charles University in Prague 5 th October 2015 Workshop 1 – Java Wrestling.
Today Javadoc. Packages and static import. Viewing API source code. Upcoming Topics: –protected access modifier –Using the debugger in Eclipse –JUnit testing.
Guide To Develop Mobile Apps With Titanium. Agenda Overview Installation of Platform SDKs Pros of Appcelerator Titanium Cons of Appcelerator Titanium.
Author: Loh Jianxiong Christopher Contributions: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang, Tong Chun Kit, Tania Chattopadhyay.
Day 1 Session 2. Setup & Installation
Introducing IBM Rational Software Architect
Dive Into® Visual Basic 2010 Express
CLOUD
Obtaining the Required Tools
ATS Application Programming: Java Programming
Plug-In T7: Problem Solving Using Access 2007
ETL Validator + ALM = Data Delivery. Faster and Better
Setting up Eclipse Locally
Setting up an Eclipse project from a repository on GitHub
Using Eclipse.
SOP of System Security Settings
How to import CAP Library
Microsoft Windows 7 Basics
Java Code Review with CheckStyle
Presentation transcript:

Working with Libraries UNIT - V Working with Libraries

Creating Java Library JARs Create a JAR-based library that accesses only Java 5 (and earlier) APIs via JDK command-line tools or Eclipse. Suppose you plan to create a simple library of math-oriented utilities. This library will consist of a single MathUtils class with various static methods. // MathUtils.javapublic class MathUtils { public static long factorial(long n) if (n <= 0) return 1; else return n*factorial(n-1); } }

MathUtils currently consists of a single static factorial() method for computing and returning factorials (perhaps for use in calculating permutations and combinations). You might eventually expand this class to support fast Fourier transforms and other math operations not supported by the java.lang.Math class. To Developing a JAR-based library with the JDK is trivial. Perform the following steps to create a mathutils.jar file that contains the MathUtils class:

1. start Eclipse IDE if not already running. 2 1. start Eclipse IDE if not already running. 2. Select New from the File menu and Java Project from the resulting popup menu. 3. On the resulting New Java Project dialog box, enter mathutils into the Project name textfield and click the Finish button. 4. Expand Package Explorer’s mathutils node. 5. Right-click the src node (underneath mathutils) and select New, followed by Package from the resulting pop-up menus. 6. On the resulting New Java Package dialog box, enter com.sjc.mathutils into the Name field and click Finish. 7. Right-click the resulting com.sjc.mathutils node and select New, followed by Class on the resulting pop-up menus.

8. On the resulting New Java Class dialog box, enter MathUtils into the Name field and click Finish. 9. Type your Code then save. 10. Right-click the mathutils project node and select Build Project from the resulting pop-up menu. (You might have to deselect Build Automatically from the project menu first.) 11. Right-click the mathutils project node and select Export from the resulting pop-up menu. 12. On the resulting Export dialog box, select JAR file under the Java node and click the Next button. 13. On the resulting JAR Export pane, keep the defaults but enter mathutils.jar in the JAR file textfield. Click Finish. The resulting mathutils.jar file is created in your Eclipse workspace’s root directory.

Using Java Library JARs You’ve successfully built mathutils.jar and want to learn how to integrate this JAR file into your Eclipse-based Android projects. You’ll need an Android app to try out this library Use your platform’s file manager program (such as Windows XP’s Windows Explorer) to select and drag the previously created mathutils.jar file to the libs node available on your Application folder Right-click mathutils.jar and select Build Path followed by Configure Build Path on the resulting pop-up menus. On the resulting Properties for UseMathUtils dialog box, select the Libraries tab and click the Add Jars button. On the resulting JAR Selection dialog box, expand the UseMathUtils node followed by the libs node. Select mathutils.jar and click OK to close JAR Selection. Click OK a second time to close Properties for your Application