java-library.bbclass: consider multilib

when multilib is enabled the prefix begins with lib32-
and thats got wrong when computing JPN. Lets make sure
that mlprefix is handled properly while constructing
JPN for multilib package e.g.

lib32-dbus-java will now create lib32-libdbus-java
instead of lib32-dbus-java which was same as PN
and caused warnings like

WARNING: Variable key FILES_${PN} (${bindir}/* ${sbindir}/*
${libexecdir}/* ${libdir}/lib*${SOLIBS} ${sysconfdir} ${sharedstatedir}
${localstatedir} ${base_bindir}/* ${base_sbindir}/*
${base_libdir}/*${SOLIBS} ${base_prefix}/lib/udev/rules.d
${prefix}/lib/udev/rules.d ${datadir}/${BPN} ${libdir}/${BPN}/*
${datadir}/pixmaps ${datadir}/applications ${datadir}/idl ${datadir}/omf
${datadir}/sounds ${libdir}/bonobo/servers) replaces original key
FILES_lib32-dbus-java (${datadir_java}).

Signed-off-by: Khem Raj <raj.khem@gmail.com>
bcel,avalon-framework: Specify encoding to javac

when using javac from different JDK it does not like
the encodings since default is ascii, so be specific.

fastjar argument order was not correct when using other
fastjar implementation it was strict about it so lets
correct it as well.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
gnujaf: Fix building with java7

When using different javac which used java 1.7
gnujaf would not compile error details are in
patch header.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
java-library.bbclass: Export BOOTCLASSPATH and LD_LIBRARY_PATH

They are helpful in rebuilding from shared state since jamvm is
not so relocatable.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
junit: Fix build when rebuilding from same tree

use -o option to unzip to overwrite the classes
it fails otherwise when unpack build step is reexecuted again

There is no need to specify bootclasspath now

Add unzip-native to dependency

Fix fastjar commandline order

Signed-off-by: Khem Raj <raj.khem@gmail.com>
xerces-j: Specify cp instead of bootclasspath

This makes other javac implementations happy

Signed-off-by: Khem Raj <raj.khem@gmail.com>
dbus-java: User PN instead of hardcoding names

remove JFLAGS dont need them anymore

Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes-core: Correct fastjar cmdline

Signed-off-by: Khem Raj <raj.khem@gmail.com>
classpath: Adjust classpaths when using jamvm from sstate

when building from sstate and classpath wants to rebuild
then jamvm still needs the new paths. Its needed for classpath
since it does not inherit java-library class otherwise it would
not be needed.

Signed-off-by: Khem Raj <raj.khem@gmail.com>