From owner-freebsd-java@FreeBSD.ORG Tue May 29 12:54:27 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3822E16A421 for ; Tue, 29 May 2007 12:54:27 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from mail1.intricatesoftware.com (static-64-115-215-92.isp.broadviewnet.net [64.115.215.92]) by mx1.freebsd.org (Postfix) with ESMTP id C319D13C45E for ; Tue, 29 May 2007 12:54:26 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from seraph.intricatesoftware.com (relay@localhost.intricatesoftware.com [IPv6:::1]) by mail1.intricatesoftware.com (8.14.0/8.13.4) with ESMTP id l4TCi9Qj005882; Tue, 29 May 2007 08:44:10 -0400 (EDT) Received: from localhost.intricatesoftware.com (truk@localhost.intricatesoftware.com [127.0.0.1]) by seraph.intricatesoftware.com (8.14.1/8.14.1) with ESMTP id l4TChrGp002202; Tue, 29 May 2007 08:43:53 -0400 (EDT) From: Kurt Miller To: freebsd-java@freebsd.org Date: Tue, 29 May 2007 08:43:52 -0400 User-Agent: KMail/1.9.6 References: <20070527082705.GZ1992@turion.vk2pj.dyndns.org> <20070528192313.GA58438@turion.vk2pj.dyndns.org> In-Reply-To: <20070528192313.GA58438@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705290843.52729.lists@intricatesoftware.com> X-SMTP-Vilter-Version: 1.3.6 X-SMTP-Vilter-Virus-Backend: clamd X-SMTP-Vilter-Status: clean X-SMTP-Vilter-clamd-Virus-Status: clean X-Spamd-Symbols: ALL_TRUSTED,SPF_HELO_PASS X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -1.4 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.3 X-Its-A-Nuisance: This is spam X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean Cc: Peter Jeremy Subject: Re: OOo 2.2 unable to talk to java X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kurt@intricatesoftware.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2007 12:54:27 -0000 On Monday 28 May 2007 3:23:13 pm Peter Jeremy wrote: > Redirected from freebsd-openoffice because this appears to be a jdk bug. > > On 2007-May-27 18:27:21 +1000, Peter Jeremy wrote: > >After my X.org upgrade, OOo is reporting that my java is defective. > >Unfortunately, I'm not sure if this worked before. > > > >Environment: > >6.2-STABLE/amd64 from late April > >jdk-1.5.0p4_2 > >openoffice.org-2.2.0_1 > > > >stderr: > >Error occurred during initialization of VM > >Unable to load native library: Shared object "libjvm.so" not found, required by "libjava.so" > >JavaVM: JNI_CreateJavaVM called _exit, caught by abort_handler in javavm.cxx > >[Java framework] sunjavaplugin.soCan not create JavaVirtualMachine, abort handler was called. > > > >Both /usr/local/openoffice.org-2.2.0/share/config/javavendors.xml and > >/home/peter/.openoffice.org2/user/config/javasettings_FreeBSD_X86_64.xml > >appear correct. libjvm.so _is_ correctly found and opened but a bit > >later, OOo opens /usr/local/jdk1.5.0/jre/lib/amd64/libjava.so and it > >tries to find libjvm.so in > >/usr/local/jdk1.5.0/jre/lib/amd64/client/libjvm.so rather than > >/usr/local/jdk1.5.0/jre/lib/amd64/server/libjvm.so > > I've rebuilt OOo without effect. Looking at my i386 systems, they > have both client and server libjvm's so the problem would appear to > be jdk on my amd64 system. > > Is there a fix or work-around? > I hit the same problem porting OOo to OpenBSD. OOo needs to be told to look for the server vm on amd64. Two patches are needed to do that: http://www.openbsd.org/cgi-bin/cvsweb/ports/editors/openoffice/patches/patch-jvmfwk_sunmajor_pluginlib_sunjre_cxx http://www.openbsd.org/cgi-bin/cvsweb/ports/editors/openoffice/patches/patch-config_office_set_soenv_in -Kurt