Fixed problem where javaplugin was instanced twice.