实例如下:
CrawlTrans.java
package bank;
...
public class CrawlTrans {
...
public static void main(String[] args) {
...
META-INF/MANIFEST.MF
Manifest-Version: 1.0
Main-Class: bank.CrawlTrans
Class-Path: lib/jsoup-1.8.3.jar lib/mysql-connector-java-5.1.26-bin.jar
Jar包时的结构
整个文件夹架构
run.bat
@echo off
echo Start extracting ...
@echo on
REM java -jar trans.jar 126 bankResource/trans.html
java -jar trans.jar 126 bankResource/test2.txt
@echo off
echo Extracting is completed.
cmd
@echo on