以MyEclipse为例: 1. MyEclipse中右键Export; 2. 选择Java> Runnable JAR File; 3. 选择Launch configuration及输出目录; finish。