Extract Your Sources
In order to compile the AGIS, two sources will be needed. The first is included Atavism Server and the second is the AGIS itself. Extract the AGIS to a folder somewhere on a drive, add a second extraction that will not be modified for comparison. In the image below the folders tagged Thevisad have modifications and the untagged folders are unmodified.
Extract the server and either use the files directly, or create a folder that contains the dist/lib and the other/managed folders from the Atavism Server.
Note: The next two pictures show the same process in two different ways, only do one of them.
Server files can be used directly, simply by extracting them and just accessing the folders in the following steps.
Files Extracted and put into a source folder, this is the prefered method as these files will be used only for this purpose.
Open Eclipse and configure a Default Workspace for this environment. Once it has been opened, right click on the project Explorer tab and select New – Project.
When the dialogue box appears, select Java Project.
Before Location is selected to load the extracted AGIS folder, the settings can be modified. These will be overwritten and locked out when the AGIS folder is selected.
Browse to the folder where the AGIS files have been extracted and selected this location.
Selecting the Location will load the AGIS project in that folder and select the JRE to use. Click Finish to create the project.
Project Java Settings
The Java settings page will appear and the source should look like this. Select the Libraries tab to load the external libraries needed to compile the project.
With Classpath selected, click Add External Jars and then browse to where the dist/lib folder is that was extracted from the Atavism Server package.
With Classpath selected, click Add External Jars and then browse to where the other/managed folder is that was extracted from the Atavism Server package.
Once all the external Jar files are loaded, the Libraries screen should look like this. Click Finish to finalize the project settings.
Change Java Build Level
Once the project has been built, right click the project and select properties. This is where the Java compiler version can be changed. Select the proper version for the toolchain to build the project.
Once the project has been loaded, it can be built. Right click on the project and select Build Project to see if there are any errors generated.
Right Click the project and select Export, when the dialogue appears, select Jar file for the file type.
Browse to the file export path and select Finish, this will create the jar file and export the package.
Warnings are fine, clicking details will show the warnings that were generated during the build process.
Browse to the export folder path to find the exported jar file. This can be copied to the servers location and overwrite the original file. The server may be started to reload the new jar file at this time.