#Berkley db env variables
export JE_HOME=/Users/ankit/UT/sem2/database-systems/je-5.0.103
export CLASSPATH=$JE_HOME/lib/je-5.0.103.jar:$JE_HOME/examples
#compile
javac je/gettingStarted/*.java
#make the env directory
mkdir gsgEnv
#load the files
java je.gettingStarted.ExampleDatabasePut -h gsgEnv -i je/gettingStarted/inventory.txt -v je/gettingStarted/vendors.txt
#query the database
java je.gettingStarted.ExampleInventoryRead -h gsgEnv
#based on inventory read
java je.gettingStarted.ExampleInventoryRead -h gsgEnv -s Upo
Created
February 8, 2014 23:01
-
-
Save goyalankit/8891641 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment