1. Create a user library called VoltDB and add $VOLTDB_HOME/lib/* and $VOLTDB_HOME/voltdb/* as components to add all the necessary jars. Let us call this user library as VoltDBLibraries
2. Create a java project for either DB or client and add VoltDBLibraries to the build path from the properties of the project.
3. You can use ant to compile the sources, to run voltdb compile and if you wish to run VoltDB server inside the constraints of eclipse for testing purposes. Please find the attached build.xml (attached as build.txt - please rename to build.xml) that you can configure according to your settings and use.
The list of targets in it:
compile.src - will compile your source code
catalog - will run voltdb compile command to create the catalog jar file
serverStart - will run voltdb create command with the configured catalog file. This target specifies the license file parameter. If you are using community edition, you would not be needing this param to voltdb create.
serverStop - will run voltadmin shutdown command. Alternatively, you could just stop the ant task from eclipse.
clean - deletes all the class files.
ddlLocation - The location in the project to find the DDL file
ddlFileName - Name of the DDL file.
jarFileName - the name of the catalog jar file to be created by voltdb compile.
VoltHome - Base directory of your voltdb installation
VoltLicense - Path of the license file for VoltDB to use during voltdb create
sourceCodePath - where the find the directories containing the java source files. In a typical eclipse java project, the directory is src
compileOutputDir - Directory to place the class files when compile.src is run. This directory is also used in voltdb compile to reference the generated class files
voltClassPath - This is the same as the libraries included in VoltDBLibraries in step1 above.
can you please help to integrate voltdb with eclipse