Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling jython-standalone-2.7.0

Compiling jline-2.12.1.jar

For details, see Jline Porting Guide (CentOS & openEuler).

Compiling jffi-arm-Linux.jar

  1. Download jffi-1.2.19.tar.gz.
    1
    wget https://github.com/jnr/jffi/archive/jffi-1.2.19.tar.gz
    
  2. Decompress jffi-1.2.19.tar.gz.
    1
    2
    tar -xf jffi-1.2.19.tar.gz
    cd jffi-jffi-1.2.19
    
  3. Compile the source code.
    1
    ant jar && ant archive-platform-jar && mvn package
    
  4. After the compilation is successful, use jffi-aarch64-Linux.jar in the dist directory to replace jffi-arm-Linux.jar in the jython-2.7.0/extlibs directory.
    1
    cp jffi-aarch64-Linux.jar jython-2.7.0/extlibs/jffi-arm-Linux.jar
    

Compiling jython-2.7.0

  1. Download the source code.
    1
    wget https://github.com/jythontools/jython/archive/v2.7.0.tar.gz
    
  2. Decompress the source package.
    1
    tar -xf v2.7.0.tar.gz
    
  3. Go to the directory where the Jython source package is decompressed.
    1
    2
    mv frozen-mirror-2.7.0 jython-2.7.0
    cd jython-2.7.0
    

    Copy the jline-2.12.1.jar file generated in Compiling jline-2.12.1.jar to the extlibs directory of jython-2.7.0.

    1
    cp jline-2.12.1.jar jython-2.7.0/extlibs/
    
  4. Compile the source code.
    1
    ant jar-standalone
    

    After the compilation is successful, the dist directory is generated.

    If jython-2.7.0 fails to be compiled for the first time, run the ant jar-standalone command again. The compilation is successful.