Tools.jar is missing

773 Views Asked by At

I am running maven build -PautoInstallPackage on my AEM project and facing the following error.

Can't find tools.jar. Rerun delombok as: java -cp lombok.jar:/path/to/tools.jar lombok.launch.Main delombok /Users/ropatel/Documents/dev/local-project-folder/java /Users/ropatel/Documents/dev/local-project-folder/services/target/generated-sources/wsimport -d /Users/ropatel/Documents/dev/local-project-folder/services/target/src-delomboked

I have only made 2 changes since the last successful build. Removed some cache from my computer and updated to MacOs Big Sur. I have had security issues with mac OS update before but I made sure I provided java full disk access right now. Did anyone face this issue? I am running AEM 6.5 service pack 4 or 5. enter image description here

1

There are 1 best solutions below

0
On

Be sure to use the proper JDK and set it as your JAVA_HOME, that message usually happens when Maven is using a JRE instead of the JDK.