the libpurple it written in cpp,Is it possible to use it in java application with cross-platform feature?
Sure, you can call native code from Java via JNI or (easier) JNA.