1

Topic: How to add package at compilation of the project from command line

I compile a class with utility usage javac.exe, I receive the error report
error: package android.support.constraint does not exist
How to connect the given packet at compilation through command line. Now a format of a command such:
"C:\Program Files\Java\jdk1.8.0_161\bin\javac.exe"-classpath C:\...\Android\Sdk\platforms\android-27\android.jar fragment\Module.java
I suspect that it is necessary to enumerate somehow in this command all packets necessary to me but as it to make and which JAR to take for compilation android.support.constraint I do not know

2

Re: How to add package at compilation of the project from command line

found the decision, I tell:
As I also assumed a problem was that compiler Javac did not have not enough link to a packet android.support.constraint. Jar I found a file here
C:\Users\2.aar
Further, using 7-zip unpacked a file aar, found there classes.jar, renamed in constraint-layout-1.0.2.jar (though it was possible and not to rename). Copied it in a folder with libraries and compiled, all is successful, here a command format:
"C:\Program Files\Java\jdk1.8.0_161\bin\javac.exe"-cp "libs\*" fragment\Module.java

3

Re: How to add package at compilation of the project from command line

Perversion of 70th shifted to the Left. Any healthy person in 2018 does not need to compile  application with the help javac, any more without telling about  classes.jar from aar library. Value of your question and the more so answer aspire to zero on the left side.

4

Re: How to add package at compilation of the project from command line

chpasha;
It not seems to you that

chpasha wrote:

Any healthy person in 2018 does not need to compile  application with the help javac, any more without telling about  classes.jar from aar library. Value of your question and the more so answer aspire to zero on the left side.

Somehow through  it is self-confident?))

5

Re: How to add package at compilation of the project from command line

nikomp wrote:

chpasha;
It not seems to you that

it not seems.
And it not seems to you in turn, what  jar from aar libraries smells slightly of specific crutches?