Skip to content

Running CodeQL create database command on Java Repos give IOException #4360

@SaumoPal97

Description

@SaumoPal97

I have been trying to run codeql create database command on a java repository using the command - codeql database create jv-db --language=java --command='mvn clean install -DskipTests'. After running for a while, it is giving the following error-

Failed to execute ODASA javac builder: java.lang.RuntimeException: IOException while executing process with args: [/Users/<user_name>/codeql-home/codeql/java/tools/macos/jdk-extractor-java/bin/java, -Dfile.encoding=UTF-8, -Xmx1024M, -Xms256M, -classpath, /Users/<user_name>/codeql-home/codeql/java/tools/semmle-extractor-java.jar, com.semmle.extractor.java.JavaExtractor, --jdk-version, -1, --javac-args, @@@/Users/<user_name>/Desktop/Experiments/<repo_name>/jv-db/log/ext/javac.args]

Since my current Mac OSX is Catalina, I followed the specific instructions given here (https://help.semmle.com/codeql/codeql-cli/procedures/get-started.html) before running the codeql create database command. My java version "1.8.0_251" and maven version Apache Maven 3.6.3. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions