DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st July 2011
Satyriasis's Avatar
Satyriasis Satyriasis is offline
OBSD Zealot
 
Join Date: Jul 2011
Location: The Valley
Posts: 3
Default 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
vulnerabilities.

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.

Both java and javascript are enabled in the firefox35 preferences. I have
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?

Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 21st July 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

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

or

# cd /usr/ports/devel/jdk/1.5
# env SUBPACKAGE=-jre make install
Reply With Quote
  #3   (View Single Post)  
Old 21st July 2011
Satyriasis's Avatar
Satyriasis Satyriasis is offline
OBSD Zealot
 
Join Date: Jul 2011
Location: The Valley
Posts: 3
Default

Thanks, jggimi. I built packages of the jre and jdk and installed them both with pkg_add.

I'm wondering if I should drop back to -stable and try it again.
Reply With Quote
  #4   (View Single Post)  
Old 21st July 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by Satyriasis View Post

Can anyone offer any advice on a solution, or let me know what additional
information I can provide?

Thanks.
Why do you need 5.0? For all I know Java could be temporary broken on 5.0 beta. Follow the thread and download the binaries I posted for 4.8


http://daemonforums.com/showthread.php?p=38562

My wife is using them on daily basis.
Reply With Quote
  #5   (View Single Post)  
Old 21st July 2011
Satyriasis's Avatar
Satyriasis Satyriasis is offline
OBSD Zealot
 
Join Date: Jul 2011
Location: The Valley
Posts: 3
Default

Thanks Oko. I have firefox35 installed; that's the version I'm trying to run the Java plugin on. Firefox 5.0 runs 5.0 video, getting me one more step away from the awful Flash.
Reply With Quote
  #6   (View Single Post)  
Old 22nd July 2011
Pjoter's Avatar
Pjoter Pjoter is offline
Shell Scout
 
Join Date: Sep 2008
Posts: 92
Default

Hello,

you have to use firefox <=3.6 b/c something changed in later version with regard to npapi. And to use Java with >=3.6 you need later version of Java.

Piotr
Reply With Quote
  #7   (View Single Post)  
Old 22nd July 2011
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Quote:
Firefox 5.0 runs 5.0 video, getting me one more step away from the awful Flash.
Audio and Video support for opensource formats (*.ogg and*.ogv) was introduced in FF3.5
Using_Audio_and_Video_in_Firefox

Last edited by shep; 22nd July 2011 at 03:05 PM. Reason: added quote
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT. The time now is 02:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick