Skip to content

Installation on Windows

peterdietz edited this page Jun 6, 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. Its easiest if the files are extracted to a location with a short path name. Such as: C:\SAFBuilder

You may need to move all the files from a folder "peterdietz-SAFBuilder-b090eec" directly to C:\SAFBuilder. We need the SAFBuilder directory to contain directories: classes, src. And contain files README, a few .jar files, as well as a few other files.

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:\SAFBuilder\javacsv-2.0.jar;C:\SAFBuilder\commons-io-1.4.jar;C:\SAFBuilder\xmlwriter-2.2.jar;C:\SAFBuilder\commons-vfs-1.0.jar C:\SAFBuilder\src\edu\osu\kb\batch\*.java -d C:\SAFBuilder\classes

Test it out on the sample data

java -cp C:\SAFBuilder\classes;C:\SAFBuilder\javacsv-2.0.jar;C:\SAFBuilder\commons-io-1.4.jar;C:\SAFBuilder\xmlwriter-2.2.jar;C:\SAFBuilder\commons-vfs-1.0.jar edu.osu.kb.batch.BatchProcess C:\SAFBuilder\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