-
Notifications
You must be signed in to change notification settings - Fork 35
Installation on Windows
You should be able to download an installer for the JDK from: http://www.oracle.com/technetwork/java/javase/downloads
Its probably best to get the latest version of Java. This seems to work fine with Java 7.
https://github.com/peterdietz/SAFBuilder/zipball/master
Open the downloaded .zip you downloaded from Github, and specify the extraction location to something easy to type such as: C:\SAFBuilder
Since the .zip is autogenerated by GitHub, it includes a uniquely named directory that is unneeded and only lengthens the path to the code. Once you extract all files to C:\SAFBuilder, open "peterdietz-SAFBuilder-xxxxxx" and move all the contents of that folder to C:\SAFBuilder.
WindowsKey + R, type in "cmd", hit enter.
From the Windows Command Prompt, change directory to where SAFBuilder is located.
cd path/to/SAFBuilder
recompile.bat
The .bat file should allow you to run the tool. The first argument is the path to the batch directory. The second argument is the filename of the CSV.
safbuilder.bat C:\SAFBuilder\src\edu\osu\kb\sample_data AAA_batch-metadata.csv
You need to include the external jars in your classpath: commons-io, xmlwriter, commons-vfs. Then the compile command is:
"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\commons-logging-1.1.1.jar
C:\SAFBuilder\src\edu\osu\kb\batch\*.java -d C:\SAFBuilder\classes
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;C:\SAFBuilder\commons-logging-1.1.1.jar
edu.osu.kb.batch.BatchProcess C:\SAFBuilder\src\edu\osu\kb\sample_data AAA_batch-metadata.csv
The whole command to enter should be on one line for each step.