Jni support

Jni_support provides multiple platform support.
HongKee fixed the multiple channel viewing problems which we discussed in the morning(22/July/2014).
It would be great to be merged into master after your considerable check.