Skip to content

Installation on Windows

peterdietz edited this page Jun 2, 2011 · 5 revisions

Installing SAFBuilder Instructions for Windows

Prerequisite:

Install Java JDK

You should be able to download an installer for the JDK from: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html

Obtain the source code:

Download the .zip archive of the SAFBuilder source code

https://github.com/peterdietz/SAFBuilder/zipball/master

Extract downloaded archive

Open the downloaded .zip you downloaded from Github, and extract the contents. Make a note of where you extract the files to, as you'll need to navigate there from the command prompt. An example location for where the files will be extracted to is: C:\Users\dietz.72\Downloads\peterdietz-SAFBuilder-ff7e4c9\peterdietz-SAFBuilder-ff7e4c9

Compile the source code through Command Prompt

Open "Command Prompt"

WindowsKey + R, type in "cmd", hit enter.

Compile the Source Code

"C:\Program Files\Java\jdk1.6.0_25\bin\javac" -cp C:\Users\dietz.72\Downloads\peterdietz-SAFBuilder-ff7e4c9\peterdietz-SAFBuilder-ff7e4c9\javacsv-2.0.jar;C:\Users\dietz.72\Downloads\peterdietz-SAFBuilder-ff7e4c9\peterdietz-SAFBuilder-ff7e4c9\commons-io-1.4.jar;C:\Users\dietz.72\Downloads\peterdietz-SAFBuilder-ff7e4c9\peterdietz-SAFBuilder-ff7e4c9\xmlwriter-2.2.jar C:\Users\dietz.72\Downloads\peterdietz-SAFBuilder-ff7e4c9\peterdietz-SAFBuilder-ff7e4c9\src\edu\osu\kb\batch\*.java -d C:\Users\dietz.72\Downloads\peterdietz-SAFBuilder-ff7e4c9\peterdietz-SAFBuilder-ff7e4c9\classes

Test it out on the sample data

java -cp C:\Users\dietz.72\Downloads\peterdietz-SAFBuilder-ff7e4c9\peterdietz-SAFBuilder-ff7e4c9\classes;C:\Users\dietz.72\Downloads\peterdietz-SAFBuilder-ff7e4c9\peterdietz-SAFBuilder-ff7e4c9\javacsv-2.0.jar;C:\Users\dietz.72\Downloads\peterdietz-SAFBuilder-ff7e4c9\peterdietz-SAFBuilder-ff7e4c9\commons-io-1.4.jar;C:\Users\dietz.72\Downloads\peterdietz-SAFBuilder-ff7e4c9\peterdietz-SAFBuilder-ff7e4c9\xmlwriter-2.2.jar edu.osu.kb.batch.BatchProcess C:\Users\dietz.72\Downloads\peterdietz-SAFBuilder-ff7e4c9\peterdietz-SAFBuilder-ff7e4c9\src\edu\osu\kb\sample_data AAA_batch-metadata.csv

Note: It is much simpler to install and run the SAFBuilder on Linux or Mac.

Clone this wiki locally