Preview

Ant, Log4J, Junit, Eclipse

Powerful Essays
Open Document
Open Document
666 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Ant, Log4J, Junit, Eclipse
1. Technical Specification

The target application environment Java compiler's version is Java 1.5.
Create a project in Eclipse.
Need to connect a database (e.g. Oracle).
Should log error message using Log4J.
Delivery the project as a jar.

2. Procedures

2.1 Create User Library for Log4J and JDBC driver (oracle-jdbc)

2.2 Add these two user libraries to the project build path

2.3 Establish The Application Environment in Eclipse

2.3.1 Create file.properties file as a property file for the application to read

2.3.2 Create a log4j.properties file for log4j to read

2.4 Follow the instructions to set up JUnit available to Ant

2.5 Create build.xml file

2.1 Create User Libraries

1. In Eclipse, Window > Preferences > Java > Build Path > User Libraries.
2. Click New button, and enter the 'user library name'.
3. Click Add JARs... button, and select the jar files to be added to this user library.
4. Click OK button.

Do the above steps for Log4J, and oracle-jdbc

2.2 Add User Libraries to the project

1. Right click the project, and select properties (or Alt+Enter).
2. Select Java Build Path > Libraries, and click Add Library... button
3. Select User Library, and click next> button
4. Select lo4j, and oracle-jdbc (the two we just created in the previous step).
5. Click OK to add these user libraries to the project environment.

Doing this can make sure these libraries are in the project classpath.

Notes:

Add User Library to the project build path will allow the the project to be compile and run using Eclipse internal build and run.

2.3 Establish Project Structure

1. Create build directory, and its sub directories (classes and jar) md build/classes md build/jar
2. Create lib directory, and copy log4j, oracle-jdbc, and junit jars in.

2.3.1 Create file.properties file as a property file for the application to read name1 = value1 name2 = value2

2.3.2 In the src directory, create a

You May Also Find These Documents Helpful

  • Good Essays

    3. After executing all steps contained in the lab instructions, submit a one Word document for each project containing your report to the Dropbox.…

    • 800 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    New project then give a file name as shown in figure 1 and go for next option.…

    • 419 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    If you already have Java JDK installed on your system, then you need not run the above command.…

    • 1876 Words
    • 8 Pages
    Good Essays
  • Better Essays

    Jdt2 Task 1

    • 1786 Words
    • 8 Pages

    | Per your request to investigate and recommend Toy Company’s position regarding Claim #1-2013; this report was generated. The initial research has been finalized and recommendations determined. I will refer to the claim by its number #1-2013 and the claimant as AA23 to keep the confidentiality of the claimant. First this report will provide a summary of the claim and the history associated with it. Second it will discuss the definition of Constructive Discharge and its relevance to this claim. Third it will provide the specific areas under the Title VII of the Civil Rights Act of 1964. Fourth it will offer recommendations and supporting legal references. Fifth it will recommend proactive steps to avoid future legal issues in relationship to the Title VII of the Civil Rights Act of 1964. And finally any references used in this research will be provided. A. Definition of Constructive DischargeSummary of Claim and history:In January 1, 2013 a new policy was implemented to support exponential company growth. This policy impacted all production employees. The impacted employees were notified of the changes two months in advance of the January 2013 implementation to allow for assimilation and training on the new shifts schedules and there impacts. Production employee schedules were shifted from a Monday through Friday schedule, 8 hour shift to a Monday through Sunday schedule, 12 hour shift, four working days can occur any day of the week. This schedule requires all production employees to work on holy days regardless of religious affiliation as the production now runs seven days a week.Office staff members were not impacted by this policy change.AA23 quit on January 2, 2013 after new policy was in effect.…

    • 1786 Words
    • 8 Pages
    Better Essays
  • Satisfactory Essays

    JDT@ task 1A

    • 625 Words
    • 2 Pages

    Or WBS Project cost management can use earned value once the project has started by calculating what has beenn completed versus what needs to be completed. An also use a gannt chart anuse the tale in the case study to show how much people were paid to complete part of the project and the time spent. Can conduct skype meetings weekly to share the information to all team members. Using Skype to meet will be more efficient because team members could not set a day and time for ALL to meet in one location. A WBS can also be helpful here to separate all the costs and budgets to organize in a manner where the team can understand what money goes where.…

    • 625 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    A. File -> New project-> Project Name: Lab3Activities , Main Class Name  Swap2Nos  click Finish Button…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    Antwone Case Study

    • 130 Words
    • 1 Page

    Antwone was referral due to anger and violence incidents, especially the incident with an officer. Antwone was submitted in a medical center of US navy for a psychiatric assessment because he assaulted an officer by siping Him and beaten him and was pleaded guilty of a third grade crime. So, he was mandated to attend for therapy for about 45 days.Antwone had history of repeated violent behavior patterns and lack of self control to in moments of anger. So, Antwone's excuse for this particular incident was that the senior officer had to be beaten because of racial remarks against him. At the end of the psychiatric sessions, Antwone would be given a relevant letter of recommendation to his senior officials to prove he improved his anger management…

    • 130 Words
    • 1 Page
    Satisfactory Essays
  • Better Essays

    Jdt2 Task 1

    • 898 Words
    • 4 Pages

    MEMO TO: FROM: DATE: SUBJECT: Mrs. Jane Smith, CEO, Jinkie Pops Toy Co. Amy Hance, Elementary Division Manager August 22, 2012 Constructive Discharge Claim of Mr. William Fleck…

    • 898 Words
    • 4 Pages
    Better Essays
  • Better Essays

    JDT2 Task 2

    • 2636 Words
    • 11 Pages

    We have a large shipment of our elementary toy collection scheduled ship at the end of this week but have encountered a problem with the production. One of the products in this collection has failed the quality control testing exceeding the legal limits of lead set by the federal government. This shipment will be delivered to South American schools. As of August 14, 2011 the total legal lead content must not exceed 100 parts per million for a product (CPSC 2013). Our levels tested above these limits and require us to take action. To reproduce this product it will cost the company $100,000.…

    • 2636 Words
    • 11 Pages
    Better Essays
  • Powerful Essays

    JDT2 Task 1

    • 1672 Words
    • 6 Pages

    Title VII of the Civil Rights Act of 1964 protects employees from workplace discrimination on the basis of race, color, religion, sex and national origin. When an employer engages in practices that create a hostile work environment for any of these protected groups, making conditions so intolerable that an employee feels compelled to resign, it is known as constructive discharge Former employee Andy Anderson now alleges that our company engaged in religious discrimination when our production schedule changes went into effect at the first of the year. The changes required all production employees to occasionally work on a religious holy day, and Mr. Anderson has submitted a constructive discharge claim with the U.S. Equal Employment Opportunity Commission (EEOC).…

    • 1672 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Update the program information in the ApplicationUtilities.DisplayApplicationInformation method to reflect your name, current lab, and program description.…

    • 385 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    JDT2 Task 3

    • 2402 Words
    • 8 Pages

    Higher employee satisfaction – When an appraisal is exquisitely prepared and well delivered employees are prone to respond better to the feedback presented. The employees also come away from the meeting with a clear understanding of their performance and where improvement is needed. They will also have good understanding of the company’s goals both for itself and for the employee themselves.…

    • 2402 Words
    • 8 Pages
    Good Essays
  • Better Essays

    JDT2-Task 1

    • 1828 Words
    • 8 Pages

    The following are my findings regarding the constructive discharge from the employee that has left our company after our policy change.…

    • 1828 Words
    • 8 Pages
    Better Essays
  • Good Essays

    Ant 101 Week 3

    • 506 Words
    • 3 Pages

    The Navajo of yesterday and today are best known as the Dine, a southwest territory in the Native American. The Navajos are the second largest tribe in the United States. The primary mode of survival is pastoralist. In the next few pages I will talk about three major way of everyday living of the Navajos. The beliefs and values, social organizations and sickness and healing.…

    • 506 Words
    • 3 Pages
    Good Essays
  • Good Essays

    VirtualDJ 8 Getting Started

    • 1778 Words
    • 12 Pages

    VirtualDJ 8 is the new, highly anticipated flagship product that will take your audio and video mixing to…

    • 1778 Words
    • 12 Pages
    Good Essays

Related Topics