From owner-freebsd-questions Fri Jun 7 20:15:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pris.polaris.ca (pris.polaris.ca [199.247.156.218]) by hub.freebsd.org (Postfix) with SMTP id 22F2A37B400 for ; Fri, 7 Jun 2002 20:15:33 -0700 (PDT) Received: (qmail 88317 invoked by uid 85); 8 Jun 2002 03:15:36 -0000 Received: from Seamus.Venasse@polaris.ca by pris.polaris.ca by uid 82 with qmail-scanner-1.10 (uvscan: v4.1.60/v4201. spamassassin. Clear:0. Processed in 1.389137 secs); 08 Jun 2002 03:15:36 -0000 X-Qmail-Scanner-Mail-From: Seamus.Venasse@polaris.ca via pris.polaris.ca X-Qmail-Scanner: 1.10 (Clear:0. Processed in 1.389137 secs) Received: from unknown (HELO tornado) (216.126.123.139) by 0 with SMTP; 8 Jun 2002 03:15:34 -0000 From: "Seamus.Venasse" To: "'aaron g'" , Subject: RE: JDK in a Jail? Date: Fri, 7 Jun 2002 20:15:11 -0700 Message-ID: <00d101c20e9a$b37b9b50$8b7b7ed8@tornado> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <20020606172246.30271.qmail@operamail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Status: No, hits=-2.5 required=5.0 tests=IN_REP_TO,SUBJ_ENDS_IN_Q_MARK,AWL version=2.20 X-Spam-Level: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of aaron g > Sent: June 6, 2002 10:23 AM > To: freebsd-questions@freebsd.org > Subject: JDK in a Jail? > > > Well it seems the -java people have a lot more to worry > about than getting a JDK working in a jail [with good > reason! congrats to bill huey on HotSpot success] > > In anyevent, I was curious if anyone on the list has gotten > or tried to get either the native 1.3 JDK or linux binary > 1.4 JDK working in a jail environment. I googled and > perused the handbook but found nothing helpful at all. Yes, it works quite well in a jail. I installed the linux_base and installed linux-jdk-1.3.1.03 so that I can run the Jakarta Tomcat 4.0.3 port. However, there were a few steps I needed to do first, so I'll list them below: In the system environment: - ensure that the kernel has support for linux binaries # sysctl kern.fallback_elf_brand <-- record the number displayed # sysctl -w kern.fallback_elf_brand=3 In the jail environment: # cd /usr/ports/emulators/linux_base # vi Makefile Comment out the "@mknod ${LINUXBASE}/dev/null c 2 2" line. # make all install clean In the system environment: # sysctl -w kern.fallback_elf_brand={number recorded earlier} # cd {jaillocation}/compat/linux/dev # mknod null c 2 2 You now have a working linux_base within a jail environment. I installed linux-JDK 1.3 because linux-JDK 1.4 does not allow me to turn off HotSpot. I didn't choose to compile the native JDK due to time constraints. Now that HotSpot is working in the native JDK, maybe I'll just create another jail and try to compile it there. Seamus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message