Java plugin for Firefox

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Sun Nov 12 15:15:33 UTC 2006


Erik Norgaard <norgaard at locolomo.org> writes:

> Hi:
>
> How do I build the java plugin for Firefox? I have jdk15 installed
> without the plugin. I tried to rebuild with USE_GECKO=firefox which
> fails as the Makefile also states:
>
> /usr/local/include/firefox/nsDebug.h:207:1: warning: this is the
> location of the previous definition
> ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:
> In member function `virtual JDresult
> CNSAdapter_JVMManager::GetCurrentThread(JDUint32*)':
> ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142:
> error: `nsPluginThread' was not declared in this scope
> ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142:
> error: `pPluginThread' was not declared in this scope
> ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:
> In member function `virtual JDresult
> CNSAdapter_JVMManager::PostEvent(JDUint32, IRunnable*, JDBool)':
> ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172:
> error: invalid conversion from `JDUint32' to `PRThread*'
> ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172:
> error:   initializing argument 1 of `virtual nsresult
> nsIThreadManager::PostEvent(PRThread*, nsIRunnable*, PRBool)'
> gmake[5]: ***
> [/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/deploy/plugin/adapter/ns7/obj/CNSAdapter_JVMManager.o]
> Error 1
> gmake[5]: Leaving directory
> /usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter'
> gmake[4]: *** [optimized] Error 2
> gmake[4]: Leaving directory
> /usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter'
> gmake[3]: *** [ns7-adapter] Error 2
> gmake[3]: Leaving directory
> /usr/ports/java/jdk15/work/deploy/make/plugin/adapter'
> gmake[2]: *** [adapter] Error 2
> gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/deploy/make/plugin'
> gmake[1]: *** [plugin-all] Error 2
> gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/deploy/make'
> gmake: *** [deploy-build] Error 2
> *** Error code 2
>
> Stop in /usr/ports/java/jdk15.
>
> Then I tried just building it for mozilla with the idea of copying or
> linking the plugin to the firefox plugin dir. But building mozilla fails
>
> nsType1.cpp:371: error: invalid conversion from `int (*)(const
> FT_Vector*, void*)' to `int (*)(FT_Vector*, void*)'
> nsType1.cpp:371: error: invalid conversion from `int (*)(const
> FT_Vector*, void*)' to `int (*)(FT_Vector*, void*)'
> nsType1.cpp:371: error: invalid conversion from `int (*)(const
> FT_Vector*, const FT_Vector*, void*)' to `int (*)(FT_Vector*,
> FT_Vector*, void*)'
> nsType1.cpp:371: error: invalid conversion from `int (*)(const
> FT_Vector*, const FT_Vector*, const FT_Vector*, void*)' to `int
> (*)(FT_Vector*, FT_Vector*, FT_Vector*, void*)'
> gmake[4]: *** [nsType1.o] Error 1
> gmake[4]: Leaving directory `/usr/ports/www/mozilla/work/mozilla/gfx/src/ps'
> gmake[3]: *** [libs] Error 2
> gmake[3]: Leaving directory `/usr/ports/www/mozilla/work/mozilla/gfx/src'
> gmake[2]: *** [libs] Error 2
> gmake[2]: Leaving directory `/usr/ports/www/mozilla/work/mozilla/gfx'
> gmake[1]: *** [tier_9] Error 2
> gmake[1]: Leaving directory `/usr/ports/www/mozilla/work/mozilla'
> gmake: *** [default] Error 2
> *** Error code 2
>
> Stop in /usr/ports/www/mozilla.
>
> Any suggestions?
  
I just built jdk15 with the default options, and the Java plugin works
in my firefox.

> Secondly, is there a way to just build the plugin since I have the jdk
> built and installed?

It looks possible, but (to me) it's not worth a few hours of human
time to figure it out in order to save a few hours (or even days) of
the computer's time.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/


More information about the freebsd-questions mailing list