生成c代码
1、创建包名(com.apress.swig)
2、E:workspaceHelloJni>swig -java -package com.apress.swig -outdir src/com/apress/swig jni/Unix.i
3、修改Makefile
--------------------------------
LOCAL_SRC_FILES+= Unix_wrap.c
--------------------------------
生成c++代码
swig -c++ -java -package com.apress.swig -outdir src/com/apress/swig jni/Unix.i