Is it possible to import the library with java commands into the current project, without the help of any IDEs and without setting up variable environments, knowing that we are sure to be in C: /library.jar?

1 answer 1

There are several options:

  1. when compiling add to the classpath path to the jar archive
  2. if you use an assembly program, like maven, then you can import the archive into a local repository, for example,