Java Installation Woes
I understand the OpenBSD community's uneasy feelings about Java, both for
licensing reasons and because it opens a broad vector for many
Nonetheless, I need to have the Java plugin installed in my browser to use
some essential work-related programs, and I'd like to continue with OpenBSD
as my as my desktop OS.
I've built jdk 1.5 and its associated jre from the snapshot ports of 7/18
(the machine is running that day's snapshot). I have firefox35 and the
current firefox (5.0) both installed from packages. The jdk compiled
cleanly and installed without a hitch. However, I can't seem to get the
java plugin to register with firefox35. I've searched previous discussions
in the forum (including the recent exchange about a similar situation that
sepuku encountered) without finding a solution for my problem.
I've soft-linked the plugin to ~/mozilla/plugins and to the system
locations, both /usr/local/lib/mozilla/plugins (as the README says), and to
/usr/local/lib/mozilla-plugins (as pkg_info -M for the jdk instructs). I've
set MOZ_PLUGIN_PATH to all these locations and rebooted after each change.
I also tried pkg_delete on firefox-5.0 so that it couldn't interfere with
things. No luck. aboutlugins shows no libjavaplugin_oji.so (or any other
plugin) in firefox35.
JAVA_HOME set and have tried this with the jdk bin/ directory in my PATH and
not in my PATH (as I would prefer it). Nothing seems to work.
Can anyone offer any advice on a solution, or let me know what additional
information I can provide?
Ensure that the jre package you built was installed. It might not be. Your symbolic links won't work if the plugin isn't there.
$ pkg_info | grep jre
You can use pkg_add or you can use make install with the SUBPACKAGE environment variable, as you prefer:
# cd /usr/ports/packages/<arch>/all
# pkg_add jre
# cd /usr/ports/devel/jdk/1.5
# env SUBPACKAGE=-jre make install
My wife is using them on daily basis.
Last edited by shep; 22nd July 2011 at 03:05 PM. Reason: added quote
|Thread||Thread Starter||Forum||Replies||Last Post|
|Xorg woes...||jb_daefo||FreeBSD General||1||5th June 2011 04:35 AM|
|FBSD 8.1, KDE4 Printing Woes||Mantazz||FreeBSD Ports and Packages||3||25th November 2010 12:19 AM|
|Mysql installation woes...||biscuits||FreeBSD Ports and Packages||1||23rd November 2008 04:09 AM|
|Java JDK||Oko||OpenBSD Packages and Ports||10||13th July 2008 07:39 PM|
|widescreen woes||jbhappy||FreeBSD General||8||25th June 2008 08:25 PM|