From owner-freebsd-java@FreeBSD.ORG Mon Aug 2 03:13:22 2004 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 E10D716A4CE for ; Mon, 2 Aug 2004 03:13:21 +0000 (GMT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E98F43D31 for ; Mon, 2 Aug 2004 03:13:21 +0000 (GMT) (envelope-from aah@roarmouse.org) Received: (qmail 31516 invoked from network); 2 Aug 2004 03:13:20 -0000 Received: from dsl027-178-067.sfo1.dsl.speakeasy.net (HELO [192.168.0.10]) (aah@[216.27.178.67]) (envelope-sender ) by mail1.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 2 Aug 2004 03:13:19 -0000 Message-ID: <410DB14F.6030205@roarmouse.org> Date: Sun, 01 Aug 2004 20:13:19 -0700 From: Andrew Houghton User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040728) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg Lewis References: <410AA0FB.5090207@roarmouse.org> <20040730230043.GA54639@misty.eyesbeyond.com> In-Reply-To: <20040730230043.GA54639@misty.eyesbeyond.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: native JDK on Dragonfly BSD 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: Mon, 02 Aug 2004 03:13:22 -0000 Found the answer (see the end)! But in response.. Greg Lewis wrote: >On Fri, Jul 30, 2004 at 12:26:51PM -0700, Andrew Houghton wrote: > > >>I've been playing around with DragonFly BSD for a few weeks, and thought >>I'd try compiling a native JDK from ports. Surprisingly enough (more on >>that later) almost everything seems to work. Admittedly, I'm not doing >>deep testing -- but the plugin, the JVM, and javac have handled >>everything I've thrown at them, including IntelliJ IDEA, various web >>applications, and things like HPJmeter. >> >>The one place I *am* running into problems is with Java Web Start. When >>I try starting it I get: >> >> Java Web Start splash screen process exiting ..... >> Bad installation. No JRE found in configuration file: No such file >> or directory >> >> > >I assume that it works on FreeBSD? I must admit I've never tried it. > > Sure does.. and at least one mission critical part of my work environment uses it, surprisingly enough. > > >>I traced this message down to line 243 of >>/deploy/src/javaws/src/share/native/launcher.c; the helpful comment on >>line 241 or so says "This should never happen." >> >>The closest bug report I found was from Evan Easton: >> >>http://lists.freebsd.org/mailman/htdig/freebsd-java/2003-December/001403.html >> >>using his script I was able to get javaws to start, but i still can't >>get any of the demo apps to actually run. >> >> > >What errors do they produce? > > It wasn't clear that they did produce errors.. they just never started, and the java console didn't give me any info. > > >>Now, looking at the patchset there's no mention of DragonFly (not >>surprisingly). The reason I was surprised that most things work is that >>the patch seems to be making many choices based on system type, and it's >>just not clear whether DragonFly defines anything close to the expected >>system types. >> >> > >I would guess that DragonFly still defines __FreeBSD__ (probably as 4) so >tha tmost things will just work. > > > >>So, I'm poking through the patchset and seeing what I can do, but >>someone actually familiar with this stuff (i.e., Greg or Alexey) could >>do this about a million times faster than I could, I think.. >> >> > >Assuming we had a DragonFly system, maybe so :). > > > >>Is there any chance of getting DragonFly into the list of "officially" >>supported systems for the native JDK? >> >> > >Yes. The easiest way is to do what you're doing and submit patches >when you're done. All other ways involve waiting till someone else >does it :). > >I'll try and have a quick look if I get a chance and let you know if I >see anything obvious, but its going to be a little hard without a DragonFly >system to test on. > > > Martin Hellwig, over on the DragonFly bugs list, found the right answer -- simply by switching the OS name in the ~/.java/.deployment/deployment.properties file from 'FreeBSD' to 'DragonFly', everything seems happy. I should have caught this myself -- very embarrassing. With this known, it shouldn't be too difficult to find what needs changing where and provide a patch -- I'll see what I can do this week. - a.