From owner-freebsd-hackers Thu Feb 27 17:32:13 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA29955 for hackers-outgoing; Thu, 27 Feb 1997 17:32:13 -0800 (PST) Received: from obiwan.aceonline.com.au (obiwan.aceonline.com.au [203.103.90.67]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA29950 for ; Thu, 27 Feb 1997 17:32:09 -0800 (PST) Received: from localhost (adrian@localhost) by obiwan.aceonline.com.au (8.8.5/8.8.5) with SMTP id UAA09933; Thu, 11 Jan 1996 20:03:13 +0800 (WST) Date: Thu, 11 Jan 1996 20:03:12 +0800 (WST) From: Adrian Chadd To: Troy Curtiss cc: freebsd-hackers@freebsd.org Subject: Re: Java binary support in FreeBSD ... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Yep, the linux binfmt_java.c file does this to check: if ((ucp[0] != 0xca) || (ucp[1] != 0xfe) || (ucp[2] != 0xba) || (ucp[3] != 0xbe)) return -ENOEXEC; I'm looking at it now. Adrian. On Thu, 27 Feb 1997, Troy Curtiss wrote: > > Does the Java VM bytecode have a magic number at the beginning of > the file? This would make it easy to detect (for the image activation > stuff). Just use a sysctl variable to point to the java VM executable > and/or appletviewer?? > > -- > /-----------------------------------------------------------\ > | Troy Curtiss, HW/SW Engineer | Email: troyc@merix.com | > | Merix Corporation, CL-302 | Phone: (970) 203-6643 | > | Loveland, CO 80537 | Fax : (970) 203-6610 | > \-----------------------------------------------------------/ >