To install iTrust on your home system, download and install the following packages.
| Eclipse v3.5 | Windows, OS X (Carbon) Unzip the program files to a permanent location |
| JDK v1.5 or above | Download the Java JDK and not the JRE package. Also, do not confuse this with the Java EE SDK. Any update for version 1.5 (eg v5) will do; you do not need NetBeans nor the Source Code (though the source can be helpful). |
| Apache Tomcat v5.5.27 | Download the core zip, unzip into desired location. Don't forget this! Download the MySQL JDBC Driver, place the .jar file into the following directory: <your tomcat folder>/common/lib/ |
| MySQL v5.0 | Select and install the distribution for your operating system. Note that you do not need to obtain a username for download. Note that you should not check Disable networking when configuring the server. |
| MySQL GUI Tools Bundle for 5.0(optional) | These can be useful for tweaking your local database and testing your queries. Install for your operating system. |
| iTrust Source | Download the zip to desired location. Do not extract. |
Once you unzip Tomcat into a directory on your machine (don't forget the MySQL driver!), you will need to set up the Web Tools environment to deploy projects. To do this, complete the following steps in Rational Team Concert or Eclipse:
Window > Show View > Other… Select Server > Servers…Servers view, right click and select “New”Apache > Tomcat 5.5. Hit next.FinishServer startup in xxxxx ms in the Console view, and the Servers view shows that your status is “Synchronized”, then your server is properly configured. If the Console view isn't open, go to Window > Show View… > ConsoleiTrust needs to be able to connect to a MySQL database. Your instructor or TA may give you the database URL, username, and password details. If, however, you wish to have a local database (which performs significantly faster), you can install MySQL on your own machine. Here are instructions for how to set up your sever on Windows, Linux and Mac OS X. We recommend you use the Developer Machine option, and be sure to allow TCP/IP connections.
If you use a local MySQL setup, then you will also need to create a database. Use the GUI tools for this, or use the “MySQL Command Line Client”, and run the command Create Database XXXX; where XXXX is your desired database name.
Be sure to remember what you initialize as your root password (you will need it later).
If MySQL does not install properly and you wish to re-install, be sure to remove the log files and the data tables. For example, if you originally installed MySQL into c:\Program Files\MySQL\My SQL Server 5.0, then delete the MySQL folder before re-installing.
MySQL has a large community and extensive documentation, so if you can't find the answer to your question here, consult the MySQL website.
The source files will need to be imported as an Eclipse project, and deployed as a Tomcat application. To do this, follow these steps:
File → Import … and select Existing Projects Into Workspace. Click Next.Select Archive File and select Browse.For example, if you are using a local database, your parameters might look like the following:
username=“root” password=“pw” url=“jdbc:mysql://localhost/iTrust”
iTrust > unittests> edu.ncsu.csc.itrust. Right-click on DBBuilder.java, select Run as… > Java Application(to view your packages easier, click on the triangle in the package explorer view, Package Presentation > “Hierarchical”)
Executing: , then end with Operation Completedunittests, and in the datagenerators package, run the TestDataGenerator.java program. You should also get a lot of Executing: , followed by an Operation Completed.Servers view as before.http://localhost:8080/iTrust/. You should be able to log in and use the application as normal.