In order to analyze a codebase using CodeQL, the project's codebase will need to be built into a database.
Creating Database for Compiled Languages
For compiled languages such as Java and C#, this will require compiling the codebase.
An example of compiling a Java project:
Note: The following commands assume the current directory is the source root; if not use the --source-root argument to specify the root of the project.