Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

java.lang.NoClassDefFoundError: com/sun/tools/javadoc/Main with modern JDK #72

Open
djeang opened this issue Dec 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@djeang
Copy link

djeang commented Dec 13, 2023

Description

Calling componentFinder.findComponents() for scanning source code scan source code, throws following error :

java.lang.NoClassDefFoundError: com/sun/tools/javadoc/Main
    at com.structurizr.analysis.SourceCodeComponentFinderStrategy.runJavaDoc (SourceCodeComponentFinderStrategy.java:126)
    at com.structurizr.analysis.SourceCodeComponentFinderStrategy.afterFindComponents (SourceCodeComponentFinderStrategy.java:64)
    at com.structurizr.analysis.ComponentFinder.findComponents (ComponentFinder.java:81)

This has been prodiced using JDK 17 & 21 (I need yhose as I use structurizr-dsl) instead

Steps to reproduce

ComponentFinder componentFinder = new ComponentFinder(container, "com.mycompany",
                new SourceCodeComponentFinderStrategy("src/main/java" 150),
                new SpringComponentFinderStrategy(
                        new ReferencedTypesSupportingTypesStrategy()
                )
        );
componentFinder.findComponents();

Execute this code using JKD 17 or higher (tested with both temurin and Oracle openJdk)

Screenshot

No response

Code sample

No response

Configuration

No response

Severity

Critical

Priority

I have no budget and there's no rush, please fix this for free

More information

No response

@djeang djeang added the bug Something isn't working label Dec 13, 2023
@simonbrowndotje
Copy link
Collaborator

See #69 ... I have no plans to update this library at this time I'm afraid.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants