From owner-freebsd-questions@FreeBSD.ORG Sun Aug 30 04:41:23 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7DF3106566B for ; Sun, 30 Aug 2009 04:41:23 +0000 (UTC) (envelope-from saifi.khan@datasynergy.org) Received: from s219.sureserver.com (s219.sureserver.com [203.194.200.31]) by mx1.freebsd.org (Postfix) with ESMTP id 1A0738FC1B for ; Sun, 30 Aug 2009 04:41:22 +0000 (UTC) Received: (qmail 22859 invoked by uid 1002); 30 Aug 2009 04:41:21 -0000 Received: from unknown (HELO ?10.10.10.7?) (saifi.khan@datasynergy.org@59.96.203.47) by s219.sureserver.com with ESMTPA; 30 Aug 2009 04:41:21 -0000 Date: Sun, 30 Aug 2009 10:09:40 +0530 (IST) From: Saifi Khan X-X-Sender: saifi@freebsd To: freebsd-questions@freebsd.org In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: AN Subject: Re: java config problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2009 04:41:23 -0000 On Fri, 28 Aug 2009, AN wrote: > I'm trying to configure java on FreeBSD 7-stable and Gnome 2.26.3, with > Firefox35. I tried the following commands, but still no ability to view java > applets. > > ln -s libjavaplugin_oji.so /usr/local/lib/firefox/plugins > ln -s libjavaplugin_oji.so /usr/local/lib/firefox3/plugins > ln libjavaplugin_oji.so /usr/local/lib/firefox3/plugins > > installed package's: > pkg_info | grep java > javavmwrapper-2.3.3 Wrapper script for various Java Virtual Machines > pkg_info | grep jdk > diablo-jdk-1.6.0.07.02 Java Development Kit 1.6.0_07.02 > > Any help to get this working would be really appreciated. > > TIA > Hi AN: To enable the java plugin in firefox, please do the following: . cd $HOME/.mozilla . cd plugins (if the plugins dir doesnot exist, please create one) . ln -s /usr/local/diablo-jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so . on doing ls -l, you'll see an entry look like this libjavaplugin_oji.so@ -> /usr/local/diablo-jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so To check for java plugin support, you can try the following: . start firefox 3.5 . type about:plugins in the address bar . you should see entry like Java(TM) Plug-in 1.6.0_07-b02 File name: libjavaplugin_oji.so Java(TM) Plug-in 1.6.0_07 MIME Type Description Suffixes Enabled application/x-java-vm Java Yes application/x-java-applet Java Yes application/x-java-applet;version=1.1 Java Yes .... .... Hope this helps you get started with using Java on FreeBSD. thanks Saifi.