From owner-freebsd-java@FreeBSD.ORG Sat May 29 17:16:04 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 9035D16A4CE for ; Sat, 29 May 2004 17:16:04 -0700 (PDT) Received: from segue.merit.edu (segue.merit.edu [198.108.1.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 580E643D2D for ; Sat, 29 May 2004 17:16:04 -0700 (PDT) (envelope-from web@merit.edu) Received: from web1.merit.edu (web1.merit.edu [198.108.62.192]) by segue.merit.edu (Postfix) with ESMTP id 3EB6459A28; Sat, 29 May 2004 20:16:02 -0400 (EDT) Received: (from web@localhost) by web1.merit.edu (8.9.3/8.9.1) id UAA09364; Sat, 29 May 2004 20:15:41 -0400 (EDT) Date: Sat, 29 May 2004 20:15:41 -0400 From: William Bulley To: Robert Huff Message-ID: <20040529201541.A9267@web1.merit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1us cc: java@freebsd.org Subject: Re: very quick java/jdk14complie = 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: Sun, 30 May 2004 00:16:04 -0000 According to Robert Huff: > > huff@>javavm -version > # > # HotSpot Virtual Machine Error, Internal Error > # Please report this error at > # http://java.sun.com/cgi-bin/bugreport.cgi > # > # Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode) > # > # Error ID: 4F533F4C494E55583F491418160E435050030B > # > > Heap at VM Abort: > Heap I have been fighting the EXACT SAME PROBLEM on both FreeBSD 5.2.1-RELEASE and (most recently) on FreeBSD 4.10-RELEASE. Here is what I found and what did (finally) work for me: First, you have to have the 'linux_base="YES"' flag in your /etc/rc.conf file. I have seen that here before. Next, you have to see "linux.ko" and "linprocfs.ko" in the output of your kldstat(8) command. Next, you have to build linux_sun_jdk14 from /usr/ports/java. Next, you have to mount(8) /usr/compat/linux/proc like the message from the linux_sun_jdk14 port tells you. I had all of this and I suspect you have as well. This failed for me on both versions! I noticed an error in my console window each time I tried to execute the above "java -version" command: command java pid 2557 tried to use non-present sched_getscheduler After a Google search, I learned this (it is somewhat dated, but useful): > Newsgroups: comp.unix.bsd.freebsd.misc > Subject: Re: Problem with kernel configuration > Reply-To: espress0@hotmail.com > > In article <37acc621.114807@news-server>, David Lineberger wrote: > > > >I just installed the xmms-0.9.1 audio package off the ftp.freebsd.org > >ftp site and whenever I play an mp3 file i get this error sent to hte > >root window: > > > >/kernel: cmd xmms pid 1537 tried to use non-present sched_getscheduler > > I had the same problem when I started using XMMS. Just add the POSIX options > to your kernel and it should work fine. Here are the lines that you need, check > LINT for details: > > options "P1003_1B" > options "_KPOSIX_PRIORITY_SCHEDULING" > options "_KPOSIX_VERSION=199309L" After I reconfigured and recompiled my 4.10-RELEASE kernel I was successful: > freebsd% /usr/local/linux-sun-jdk1.4.2/bin/java -version > java version "1.4.2_04" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) > Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) I fully expect that this kernel mod will give me success on FreeBSD 5.2.1-RELEASE as well. Good luck! I hope this helps. :-) Regards, web... -- William Bulley Email: web@umich.edu