What is a JAR source?

I recently tried to import a library in order to use it for something that I am working on.

https://sites.google.com/site/piotrwendykier/software/jtransforms

I had some difficulties because the JAR I added to the build path was "JTransforms-3.0-sources.jar" and not "JTransforms-3.0.jar".

Now I’m kind of racking my brains and just wondering what the first sources.jar were if it didn’t have any of the classes that I would like to use in it.

What is it and why?

+13
source share
3 answers

jar , ( .java), . IDE, ..

, ( .class), .

+28

:. JAR - JAR , , .. .java, .class. , OpenJDK ™ http://download.java.net/openjdk/jdk8/

:. , " " .

+12

The artifact is sourceused by the IDE, not by people. If you use maven dependencies, the IDE is smart enough to know how to find artifacts. The artifact is sourceused for step-by-step code execution in the debugger - you no longer need to explicitly link the source code to the libraries in the IDE.

More here

0
source

All Articles