From owner-freebsd-java@FreeBSD.ORG Wed Aug 27 10:10:53 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 008AE16A4BF for ; Wed, 27 Aug 2003 10:10:53 -0700 (PDT) Received: from mgr6.xmission.com (mgr6.xmission.com [198.60.22.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id E251943F3F for ; Wed, 27 Aug 2003 10:10:51 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr6.xmission.com with spam-scanned (Exim 3.35 #1) id 19s3o6-0002Q7-06 for java@freebsd.org; Wed, 27 Aug 2003 11:10:08 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr6.xmission.com with esmtp (Exim 3.35 #1) id 19s3nn-0002Cw-06; Wed, 27 Aug 2003 11:09:48 -0600 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.12.9/8.12.9) with ESMTP id h7RHIbC5066682; Wed, 27 Aug 2003 11:18:37 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.9/8.12.9/Submit) id h7RHIYq1066681; Wed, 27 Aug 2003 11:18:34 -0600 (MDT) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Wed, 27 Aug 2003 11:18:34 -0600 From: Greg Lewis To: Doug Poland Message-ID: <20030827171834.GA66631@misty.eyesbeyond.com> References: <59379.63.104.35.130.1061996751.squirrel@email.polands.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <59379.63.104.35.130.1061996751.squirrel@email.polands.org> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-9.9 required=8.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT,X_AUTH_WARNING version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: java@freebsd.org Subject: Re: New diablo caffe port/pkg problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2003 17:10:53 -0000 On Wed, Aug 27, 2003 at 10:05:51AM -0500, Doug Poland wrote: > I've run into two problems with the new JDK port/package. > > #1, Trying to use port: I cvsup'd this morning and now > have a /usr/ports/java/diablo-jdk13 port. Typing... > > # make > > tells me to fetch: diablo-caffe-1.3.1-0.tar.bz2 > Problem is, that site give me a file called: diablo-jdk-1.3.1.0.tgz > A quick glance tells me there are not the same files. > So the port mechanism is broken? No, you fetched the wrong distribution for the port. The port gives you a specific URL to fetch from, please use that and you will get the correct file. What you got is a package, not the tarball the port uses. > #2, Trying to use pkg_add: So if the port is broken I > download diablo-jdk-1.3.1.0.tgz and try a pkg_add on it. > The pkg_installs but: > > % /usr/local/diablo-jdk1.3.1/bin/java -version > java was not found in /usr/local/diablo-jdk1.3.1/bin/i386/native_threads/java You have an environment variable set or have modified jvm.cfg to make the JDK use native threads. As you point out below, there are no native threads included with this release. The output you should receive looks like this: > /usr/local/diablo-jdk1.3.1/bin/java -version java version "1.3.1" Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.3.1-0) Classic VM (build diablo-1.3.1-0, green threads, nojit) > Which is a true statement. There is no i386/native_threads directory, > but I have a green_threads directory. Typing... > > % ./java -version > /usr/libexec/ld-elf.so.1: Shared object "libhpi.so" not found You can't run the executable directly without setting up library paths, this is what the wrapper script does. > So it would appear that I don't have a working binary package. > Question: what is the correct way to install the new port or package? It sounds like you have got it installed correctly (the package anyway). Please examine your settings and turn off whatever is forcing the use of native threads. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org