---
title: 编译Jython-standalone-2.7.1
description: "请参见《Jline 移植指南（CentOS&openEuler）(https://www.hikunpeng.com/document/detail/zh/kunpengbds/ecosystemEnable/tpdl/kunpengjline21x_02_0001.html)》文档进行编译。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengbds/ecosystemEnable/tpdl/kunpengjython_02_0007.html
sourcePath: /source/zh/kunpengbds/ecosystemEnable/tpdl/kunpengjython_02_0007.html
indexId: fed0c35e81c2358ba3bcd7ba3ce02a64c2b6b40563dbd85c5b5b54b7de78588269
---
# 编译Jython-standalone-2.7.1

#### 编译jline-2.14.3.jar

请参见《Jline 移植指南（CentOS&openEuler）(https://www.hikunpeng.com/document/detail/zh/kunpengbds/ecosystemEnable/tpdl/kunpengjline21x_02_0001.html)》文档进行编译。


#### 编译jffi-arm-Linux.jar

1. 下载jffi-1.2.15。
  1 wget https://github.com/jnr/jffi/archive/jffi-1.2.15.tar.gz

2. 解压jffi-1.2.15并进入解压后的目录。
  1 2 tar -xf jffi-1.2.15.tar.gz cd jffi-jffi-1.2.15

3. 进行编译。
  1 ant jar && mvn package

4. 编译成功后，使用“dist”目录下的jffi-aarch64-Linux.jar替换“jython-2.7.1/extlibs”目录下的jffi-arm-Linux.jar。
  1 cp dist/jffi-aarch64-Linux.jar jython-2.7.1/extlibs/jffi-arm-Linux.jar


#### 编译Jython-2.7.1

1. 下载源码。
  1 wget https://github.com/jythontools/jython/archive/v2.7.1.tar.gz

2. 解压源码。
  1 tar -xf v2.7.1.tar.gz

3. 进入Jython解压目录。
  1 2 mv frozen-mirror-2.7.1 jython-2.7.1 cd jython-2.7.1

  将编译jline-2.14.3.jar编译出来的jline-2.14.3.jar拷贝到jython-2.7.1的extlibs目录下。 1 cp jline-2.14.3.jar jython-2.7.1/extlibs/

4. 执行编译。
  1 ant jar-standalone

  编译成功后将会生成新目录“dist”。
