Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Public Transportation System Installation Manual Version: 1.0 Date: 2011-01-21 Public Transportation System Installation Manual Version 1.0 Page 1 Doc. No.: Public Transportation System Installation Manual Version: 1.0 Date: 2011-01-21 Revision History Date 2011-01-21 Version 1.0 Description Final version Author Hafiz Umer Waqar Page 2 Public Transportation System Installation Manual Version: 1.0 Date: 2011-01-21 Table of Contents 1. Introduction ........................................................................................................................................................ 4 1.1 1.2 1.3 1.4 1.5 Purpose of this document ........................................................................................................................ 4 Document organization ........................................................................................................................... 4 Intended Audience .................................................................................................................................. 4 Scope ....................................................................................................................................................... 4 Definitions and acronyms ....................................................................................................................... 4 1.5.1 Definitions ............................................................................................................................... 4 1.5.2 Acronyms and abbreviations ................................................................................................... 4 1.6 References ............................................................................................................................................... 4 2. Installation of Net beans ..................................................................................................................................... 5 3. Installation of SQL Server Database .................................................................................................................. 6 4. Configuration of Public Transportation System Application.............................................................................. 7 Page 3 1. Introduction 1.1 Purpose of this document The purpose of this document is the explanation on how to use public transportation system application. 1.2 Document organization The document is organized as follows: Section 1, Introduction, describes contents of this user manual. Section 2, Installation of Net beans, describes how to install Net beans. Section 3, Installation and attached of and SQL Server database, describes how to attached PTSDB database. Section 4, Configuration of Public Transportation application, describes how configure Public Transportation application. 1.3 Intended Audience The intended audience is people in charge for use of public transportation system. 1.4 Scope The main scope of this document is to give instructions on how to use public transportation system application. 1.5 Definitions and acronyms 1.5.1 Definitions Keyword PTS 1.5.2 Acronyms and abbreviations Acronym or abbreviation 1.6 Definitions Project name in all documents and application itself References Definitions Public Transportation System Installation Manual Version: 1.0 Date: 2011-01-21 Installation of Net beans 2. If you want to show application with sources code then follow the steps. If you are using executable jar file then skip all the following steps. Download Net beans from the official site of net beans from the following link: http://netbeans.org/downloads/start.html?platform=windows&lang=en&option=java (application is developed on Net beans version 6.9.1, and works on that version for sure, but it maybe also works in later versions) Automatically unzip the downloaded file when clicked pressed. There is no special configuration of net beans that our project need. Press next in evey windows and finally the installation will start. Installation of SQL SERVER database 3. Download Microsoft SQL Server 2005 Standard edition http://www.microsoft.com/. Also available student MSDN Library. Install SQL Server 2005 Standard Edition with Windows Mixed mode. Start SQL Server Management Studio from Start Menu after the installation will complete. from Microsoft homepage: Page 5 Public Transportation System Installation Manual Version: 1.0 Date: 2011-01-21 Run the SQL Server Management Studio and enter username and password that enter in installation time and log on in the database Download the SQL Server Database from DSD page under final product and unzip the file. Right click on Database of SQL Server and choose attach. After click on Add button and brows the database files that downloaded from DSD page under final product. Page 6 Public Transportation System Installation Manual 4. Version: 1.0 Date: 2011-01-21 After successful, the database is listed in database menu of SQL Server Management studio. Configuration of Public Transportation System application Start net beans from start menu and Open project after download from DSD page under Final product, 2nd Instance. If you are using executable jar file then skip this step. Page 7 Public Transportation System Installation Manual Version: 1.0 Date: 2011-01-21 Open the DBConnection.Java file and set the computer name if the localhost is not working and database name PTSDB. Name should be same SQL Server Management Studio. String connString = "jdbc:sqlserver://localhost;databasename=PTSDB"; Driver files are already loaded with the project, if it will not work then add libraries in project after brows from SVN under libraries. Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); Page 8 Public Transportation System Installation Manual Version: 1.0 Date: 2011-01-21 Finally, enter username and password that set in installation time of SQL Server 2005 Standarad Edition in this line. conn = DriverManager.getConnection(connString, "username", "password") Play and run the project to use the public transportation system application. Page 9