Questions tagged [classgraph]

8 questions
2
votes
1 answer

How to get a list of Java class dependencies programmatically

Essentially I'm asking something similar to this: How do I get a list of Java class dependencies for a main class? but I'd like to do it using a Java API. I'd prefer not to exec jdeps and scrape the output. Extra points if it uses…
Jens D
  • 4,229
  • 3
  • 16
  • 19
1
vote
0 answers

NoClassDefFoundError: io/github/classgraph/ClassGraph

Am having jdk 19 and when I try to execute a feature file by giving Run as -> cucumber feature then am getting the below error and same applies with Java 11 as well Exception in thread "main" java.lang.NoClassDefFoundError:…
KK12
  • 61
  • 6
1
vote
1 answer

OutOfMemoryError in Gradle/SpringBoot/Kotlin Coroutines project

In these days I added a bundle of codes to my project, Gradle build failed in Github actions, some tests throw OOM error when running Gradle test task. The project tech stack is Spring Boot 3/R2dbc + Kotlin 1.8/Kotlin Coroutines+ Java 17(Gradle Java…
Hantsy
  • 8,006
  • 7
  • 64
  • 109
1
vote
1 answer

NodeEntity not recognized when SessionFactory is created inside library

I am not sure if my problem is a non-existent feature or I am using the neo4j-ogm framework incorrectly. Since you are only supposed to post bugs or feature requests in the projects GitHub repository, I would like to place my question here…
Richard
  • 582
  • 5
  • 19
1
vote
1 answer

Is this a valid use of the java ClassGraph api?

Using compile 'io.github.classgraph:classgraph:4.8.65' https://github.com/classgraph/classgraph/wiki/ClassGraph-API Java 8 ScanResult scanResult = new ClassGraph().enableAllInfo() .whitelistPackages("abc1") …
0
votes
1 answer

Why ClassGraph finds classes from other deployment on Wildfly?

I prepared WAR archive and I deployed it on Wildfly 21. I want to find all classes annotated with javax.ws.rs.ApplicationPath annotation. try (ScanResult scanResult = new ClassGraph().enableAllInfo().whitelistPackages( PACKAGE ).scan()) { …
Mariusz
  • 1,907
  • 3
  • 24
  • 39
0
votes
0 answers

In Java classgraph, How to find all jars loaded by Java classloader in runtime?

In the following question: How to find which jars and in what order are loaded by a classloader? It is stated that jars can only be listed for a URLClassloader, which for Java 8 and lower versions is the type of the context classloader. In Java 9+…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
0
votes
1 answer

Custom gradle plugin throws Unable to load class 'io.github.classgraph.ClassGraph'

I'm using the ClassGraph library inside a custom gradle plugin: https://github.com/RoRoche/plantuml-gradle-plugin/tree/feature/using_classgraph It's OK during unit testing and while releasing into local Maven and used in another project. But since…
Romain R.
  • 920
  • 12
  • 21