0

I wonder how to add jar files to module path: What I am working on is a maven project. In the Java build path, Libraries, there are no folders specifying whether I am adding the external jars to classpath or modulepath: where is the classpath or modulepath icon? normally there will be two folders telling whether this is a classpath or modulepath:case when there is a classpath or modulepath icon But it seems that all of the external jars from jGrapht lib are added to the classpath since other modules complains cannot find class. So how do I move those jGrapht's jar.files from classpath to modulepath?

I noticed that someone asked a question that: whether maven by default add to the modulepath. The answer is false but it doesn't really answer how should I move those dependencies to modulepath. I actually mean how to move them to the automatic modules since they don't have module-info.

  • what I mean is I want to add those jars to the automatic modules since they don't have module-info, I guess they cannot be added to module path – Asuka Langley Nov 06 '22 at 07:40

0 Answers0