README.doc - About ftp.heanet.ie

foreheadsobstinacySoftware and s/w Development

Aug 15, 2012 (4 years and 11 months ago)

269 views

BioAPI Java Reference Implementation

Prerequisites
:

The current reference implementa
tion has a NetBeans project

for ease of compilation. You can
find

the
NetBeans IDE
at

http://www.netbeans.org/d
ownloads/index.html
.

Download
either
the Java or the
Java SE Bundle.
The project was created in IDE version 6.7 (as it was the current version at the time), so
it is the recommended

version
.
Compatibility with other versions has not been tested.

You will

also require MySQL
5.1
Community Edition to run the Password BSP and PasswordAPP. You can
download MySQL here:
http://dev.mysql.com/downloads/mysql/5.1.html#downloads
.
The project
bun
dle has the Database driver already setup for MYSQL 5.1 (
MySQL Connector/J 5.1
). If you wish to use
a different version of MySQL , please place the appropriate driver file (jar file) under

\
Online
Release
\
PasswordApp
\
lib
.
You can find the drivers here:
http://dev.mysql.com/downloads/connector/
.

NetBeans Installation:

1.

Provide the path for the JDK installation on your system . If it is unavailable download from
http://java.sun.com/javase/downloads/index.jsp
.


MYSQL
Server
Installation

1.

In the setup Wizard select the typical installation.



2.

Once the installation is complete, select the option to configure the MYSQL server.


MYSQL
Server C
onfiguration

1.

In the wizard for configuring the SQL server

instance
, choose standard configuration
.


2.


Install as a windows service.



3.


Setup the password for the root as 1234.



4.

Press Execute to start the MySQL server instance.


Reference Implementati
on

The
reference implementation project file
is within the
BIOAPI

folder.

1.

Open the Project

BioAPI.




2.

Make your modifications(if any) to the implementation through the IDE window.


3.

Build the Pro
ject


right click on BioAPI
Java

in Projects Menu.


4.

Copy the BioAPIJava.jar file from
..
\
Online Release
\
BIOAPI
\
dist

to

\
Online
Release
\
PasswordApp
\
lib

so that Password BSP
can use the newer version of the reference
implementation(if any modifications have been made to the code in BioAPIJava).

Password BS
P/A
pplication

A
password BSP and application were

generated for testing purposes which is included in this package.
The project file is located under
PasswordA
pp

folder.

To run the BSP/Application, the SQL server
connection needs to be setup first.

MySQL s
etup:

1.

In NetBeans, go to Services tab.
Right click on Databases and
New Connection
.

Use the password
that you had at the time of installation(i.e 1234).


2.

Under Database you should have MySQL

server at localhost:3306[root]. There should be an
expansion[+]
in front of it. Expand the node and you would find a database test.



3.

Right click on test and select connect. (the username would be root and the

password whatever
you had at the time of installation
,
i.e

1234
). If it connects

successfully , you would see

a
connection jdbc:mysql://localhost:3306[root on

Default Schema] visible. Expand the
corresponding node. You should find a folder

tables
under the node test
.


4.


Right click on Tables and select create table. It should give a window to

create the table
str
ucture. put the name as biopassword. The columns are Name

and Password, both varchar,
size is anything of your choice.(since this is for

demo).


5.

Now return to the Project Tab.
Select StartFrame.java
under PasswordApp
and
click on Run File
.