From owner-freebsd-java@FreeBSD.ORG Wed Aug 6 10:46:01 2003 Return-Path: <owner-freebsd-java@FreeBSD.ORG> 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 531AC37B401 for <freebsd-java@freebsd.org>; Wed, 6 Aug 2003 10:46:01 -0700 (PDT) Received: from hotmail.com (law14-oe38.law14.hotmail.com [64.4.20.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id C000643F93 for <freebsd-java@freebsd.org>; Wed, 6 Aug 2003 10:46:00 -0700 (PDT) (envelope-from seventyforty@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 6 Aug 2003 10:46:00 -0700 Received: from 195.92.67.75 by law14-oe38.law14.hotmail.com with DAV; Wed, 06 Aug 2003 17:46:00 +0000 X-Originating-IP: [195.92.67.75] X-Originating-Email: [seventyforty@hotmail.com] From: "SeventyForty" <seventyForty@hotmail.com> To: <freebsd-java@freebsd.org> References: <Law14-OE73Pn5Y8IdwP0000876f@hotmail.com> <1060182553.4201.13.camel@dual.mmercer.com> Date: Wed, 6 Aug 2003 18:43:33 +0100 Organization: SeventyForty MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Message-ID: <Law14-OE38bN23Wvg5800014084@hotmail.com> X-OriginalArrivalTime: 06 Aug 2003 17:46:00.0435 (UTC) FILETIME=[9932DC30:01C35C42] Subject: Re: java nio stuff X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: SeventyForty <seventyForty@hotmail.com> List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>, <mailto:freebsd-java-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java> List-Post: <mailto:freebsd-java@freebsd.org> List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>, <mailto:freebsd-java-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 06 Aug 2003 17:46:01 -0000 What is the easiest way for my to make this change and rebuild it? The Makefile in my patchset uses j2sdk-1_4_1-src-scsl.zip against which it does a checksum. If I unzip the the source then make the change, how do I then "make" it easily? how should I hack the Makefile to do this? James ----- Original Message ----- From: "Michael E. Mercer" <mmercer@nc.rr.com> To: "SeventyForty" <seventyForty@hotmail.com> Cc: <freebsd-java@freebsd.org> Sent: Wednesday, August 06, 2003 4:09 PM Subject: Re: java nio stuff > This problem has been encountered already... > There is a logic problem in Sun's code. > > A quick hack for FreeBSD is to just remove everything except the line > marked with >>>>>>. > > in src/solaris/sun/nio/ch/DefaultSelectorProvider.java > > public class DefaultSelectorProvider { > > /** > * Prevent instantiation. > */ > private DefaultSelectorProvider() { } > > /** > * Returns the default SelectorProvider. > */ > public static SelectorProvider create() { > PrivilegedAction pa > = new GetPropertyAction("os.version"); > String result = (String) AccessController.doPrivileged(pa); > String[] numbers = result.split("\\.", 0); > if (numbers[1].compareTo("7") < 0) > >>>>>>>>>>> return new sun.nio.ch.PollSelectorProvider(); > else > return new sun.nio.ch.DevPollSelectorProvider(); > } > > } > > later > MeM > > > > On Wed, 2003-08-06 at 10:47, SeventyForty wrote: > > Hello FreeBSD Java people, > > > > I'm new to FreeBSD. I need to use the nio of Java 1.4.1 or above on FreeBSD. > > > > I'm currently using the native Java port 1.4.1 and I've just tried to run a game server I wrote which uses the nio and I got > > > > Exception in thread "main" java.lang.UnsatisfiedLinkError: init > > at sun.nio.ch.DevPollArrayWrapper.init(Native Method) > > at sun.nio.ch.DevPollArrayWrapper.<init>(DevPollArrayWrapper.java:59) > > at sun.nio.ch.DevPollSelectorImpl.<init>(DevPollSelectorImpl.java:54) > > at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) > > at java.nio.channels.Selector.open(Selector.java:209) > > ........ > > ........ > > > > Am I write in assuming that the nio hasn't been ported yet? If so is anyone working on it? are there any timeframes for when it might be ready? > > > > thanks in advance > > > > James > > > > > > _______________________________________________ > > freebsd-java@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-java > > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > >