Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

java.lang.RuntimeException: Did not manage to automatically find tools.jar. Use -Dtools_jar_location=<path> property #20

@smarak-dev

Description

@smarak-dev

Context

Please provide below a detailed introduction to the issue itself, and describe what you were doing when the issue happened. Or, what do you want to achieve?

java -Dtools_jar_location=C:/standalone/jdk1.8.0_341/lib/tools.jar -jar ./smartut.jar --target ./

  • SmartUt 1.1.0
  • Found 24 matching classes in target ./
  • Analyzing classpath (generating inheritance tree)
    • ./
  • Current class: com.servion.cloudwatch.enums.DimentionNameEnum
  • Going to generate test cases for class: com.servion.cloudwatch.enums.DimentionNameEnum
  • Starting Client-0
    [MASTER] 13:48:52.935 [logback-2] ERROR ClientProcess - Error when generating tests for: com.servion.cloudwatch.enums.DimentionNameEnum with seed 1708503532935. Configuration id : null
    java.lang.RuntimeException: Did not manage to automatically find tools.jar. Use -Dtools_jar_location= property
    at org.smartut.runtime.agent.ToolsJarLocator.getLoaderForToolsJar(ToolsJarLocator.java:116)
    at org.smartut.classpath.ClassPathHacker.initializeToolJar(ClassPathHacker.java:74)
    at org.smartut.ClientProcess.initializeToolJar(ClientProcess.java:110)
    at org.smartut.ClientProcess.run(ClientProcess.java:75)
    at org.smartut.ClientProcess.main(ClientProcess.java:191)
    [MASTER] 13:49:52.657 [main] ERROR SmartUt - Fatal crash on main SmartUt process. Class com.servion.cloudwatch.enums.DimentionNameEnum using seed 1708503532597. Configuration id : null
    java.lang.NullPointerException: null
    at org.smartut.executionmode.TestGeneration.generateTests(TestGeneration.java:502)
    at org.smartut.executionmode.TestGeneration.generateTestsTarget(TestGeneration.java:646)
    at org.smartut.executionmode.TestGeneration.executeTestGeneration(TestGeneration.java:88)
    at org.smartut.SmartUt.parseCommandLine(SmartUt.java:383)
    at org.smartut.SmartUt.main(SmartUt.java:131)

Steps to Reproduce

Please break down here below all the needed steps to reproduce the issue.
[If possible, please upload an example of the project you are generating tests for.]

SmartUt Arguments

Please provide the whole SmartUt commmand you executed (if relevant)

Current Result

Please describe here below the current result you got (if relevant)
[if relevant, include a screenshot]

Expected result

Please describe here below what should be the expected behaviour (if relevant)

Additional info

Please add any information of interest here below

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions