From owner-freebsd-java@FreeBSD.ORG Fri Aug 14 00:25:53 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 201DF106568C for ; Fri, 14 Aug 2009 00:25:53 +0000 (UTC) (envelope-from lane@joeandlane.com) Received: from elasmtp-masked.atl.sa.earthlink.net (elasmtp-masked.atl.sa.earthlink.net [209.86.89.68]) by mx1.freebsd.org (Postfix) with ESMTP id E7EFD8FC4B for ; Fri, 14 Aug 2009 00:25:52 +0000 (UTC) Received: from [66.47.111.183] (helo=jail.joeandlane.com) by elasmtp-masked.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1MbkBX-00039e-Fg for freebsd-java@freebsd.org; Thu, 13 Aug 2009 19:58:19 -0400 Received: from [192.168.0.200] (SERVER [192.168.0.200] (may be forged)) by jail.joeandlane.com (8.14.3/8.14.3) with ESMTP id n7DNv8dV032364 for ; Thu, 13 Aug 2009 18:57:08 -0500 (CDT) (envelope-from lane@joeandlane.com) From: Lane Holcombe To: freebsd-java@freebsd.org Content-Type: text/plain Date: Thu, 13 Aug 2009 18:58:09 -0500 Message-Id: <1250207889.16044.25.camel@lholcombe-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-ONCEAWAVE-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: n7DNv8dV032364 X-ONCEAWAVE-MailScanner: Found to be clean X-ONCEAWAVE-MailScanner-From: lane@joeandlane.com X-Spam-Status: No X-ELNK-Trace: e56a4b6ca9bdfda11aa676d7e74259b7b3291a7d08dfec79d8f3d977d03b150cdbca079f6d5dfbd7350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.47.111.183 Subject: ScriptEngineManager.getEngineFactories() is empty List<> X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2009 00:25:53 -0000 Hi, Sorry if this was asked before, but htdig did not yield any results for my queries. I'm on 7.2-STABLE, trying to use jdk6 I've installed each of these jdk's, trying to find one which has the rhino script engine bundled: jdk16, diablo-jdk16, linux-sun-jdk16, and openjdk6. No such luck. Each call to (new ScriptEngineManager()).getEngineFactories() yields and empty list (Note: that is pseudo-code for brevity. My call to getEngineFactories() works on ubuntu, xp, etc., just not on freebsd). I see in the source below /usr/ports/java/jdk16/work/... that the Rhino engine is included in the port, but it is apparently NOT included in rt.jar when the port is built. Sun claims that scripting engines can be "plugged in," but I've not found a single line of documentation that explains how I would do this. Is there a build-time switch I can use to include rhino scripting when rt.jar is built? Or a run-time switch that would cause java to expose the contents of js.jar to the ScriptEngineManager? I can get rhino to work as a command-line utility by installing ports/lang/rhino, but I want to use the scriptengine in a server-based project. Thanks for your attention. lane