From owner-freebsd-java@FreeBSD.ORG Wed Aug 6 10:50:34 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 8ACCD37B401 for ; Wed, 6 Aug 2003 10:50:34 -0700 (PDT) Received: from ext-ch1gw-3.online-age.net (ext-ch1gw-3.online-age.net [216.34.191.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9827643FBD for ; Wed, 6 Aug 2003 10:50:33 -0700 (PDT) (envelope-from lapinski@crd.ge.com) Received: from int-ch1gw-4.online-age.net (int-ch1gw-4 [3.159.232.68]) h76HoVvV015656; Wed, 6 Aug 2003 13:50:31 -0400 (EDT) Received: from crdns.crd.ge.com (localhost [127.0.0.1]) id h76HoTI8003342; Wed, 6 Aug 2003 13:50:30 -0400 (EDT) Received: from xbh01crdge.crd.ge.com (xbh01crdge.crd.ge.com [3.159.72.22]) by crdns.crd.ge.com (8.11.6p2/8.11.6) with ESMTP id h76HoSQ27667; Wed, 6 Aug 2003 13:50:29 -0400 (EDT) Received: by xbh01crdge.crd.ge.com with Internet Mail Service (5.5.2653.19) id ; Wed, 6 Aug 2003 13:50:27 -0400 Message-ID: From: "Lapinski, Michael (Research)" To: "'SeventyForty'" , freebsd-java@freebsd.org Date: Wed, 6 Aug 2003 13:50:28 -0400 X-Mailer: Internet Mail Service (5.5.2653.19) Subject: RE: java nio stuff 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, 06 Aug 2003 17:50:34 -0000 edit the checksum file an put in the md5 of the new zip with the edited srcs -mtl -------------------------------------------------- Michael Lapinski Computer Scientist GE Research "I think there is a world market for maybe five computers." - IBM Chairman Thomas Watson, 1943 ->-----Original Message----- ->From: SeventyForty [mailto:seventyForty@hotmail.com] ->Sent: Wednesday, August 06, 2003 1:44 PM ->To: freebsd-java@freebsd.org ->Subject: Re: java nio stuff -> -> ->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" ->To: "SeventyForty" ->Cc: ->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.(DevPollArrayWrapper.java:59) ->> > at ->sun.nio.ch.DevPollSelectorImpl.(DevPollSelectorImpl.java:54) ->> > at ->sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelecto ->rProvider.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" ->> ->> ->_______________________________________________ ->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" ->