From owner-freebsd-java@FreeBSD.ORG Fri Feb 1 21:11:19 2008 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 900E416A418 for ; Fri, 1 Feb 2008 21:11:19 +0000 (UTC) (envelope-from drgerlists@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.freebsd.org (Postfix) with ESMTP id 3D4EE13C448 for ; Fri, 1 Feb 2008 21:11:18 +0000 (UTC) (envelope-from drgerlists@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so1851312pyb.10 for ; Fri, 01 Feb 2008 13:11:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:organization:reply-to:to:subject:message-id:user-agent:mime-version:content-type:content-transfer-encoding; bh=w3cu4aFuR1nYqB/KV5yjo/VvgwQWwibKZKJicemF6ck=; b=hdrG6mFiY5YemTnHTe+rjcEpSFSkU7tfjOzZioROXDWPDlx0jpWWdgjGky5PJgR4KWg16iShl7raDnILxWQwhPP1RY/0lF5C3EYCQo1MV5CCLrdk+JxmYoYecfWH5p3w4O4q3dwJNeiVF2Gsnrx3bG6OC2TJY4FIBeCYRDDD+9U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:organization:reply-to:to:subject:message-id:user-agent:mime-version:content-type:content-transfer-encoding; b=NSSQR24Wd1snugRAl5ygW1EaPkLZNkCYEWnbJcirG4nJm1+7jdfIRkXZy2g+7yv6c4Y91VSnlm3lC0QdYitWvkw3pYkp9q09FtTjHXCj6KTs4jwQO4fBRAmxjHQjPCu2JUP7Zm+eqiO51Nrxn7xH8wPhp7T96UrXOgY9NpoeaMU= Received: by 10.35.106.1 with SMTP id i1mr4335909pym.62.1201898833018; Fri, 01 Feb 2008 12:47:13 -0800 (PST) Received: from lmrmac.uhw.utoledo.edu ( [131.183.86.111]) by mx.google.com with ESMTPS id f6sm9220959pyh.13.2008.02.01.12.47.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Feb 2008 12:47:08 -0800 (PST) Date: Fri, 01 Feb 2008 15:47:07 -0500 From: drgerlists@gmail.com (Dr. Gary E. RAFE) Organization: Dr. Gary E. RAFE To: freebsd-java@freebsd.org Message-ID: <47a3854b.IK8El/NhR4OtnvOoWFFVHCY/@lmrmac.uhw.utoledo.edu> User-Agent: Heirloom mailx 12.3 7/15/07 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Building Native Java 3D (j3d) from Sources ? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: drgerlists@gmail.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 21:11:19 -0000 Anyone on this list have any success building a native Java 3D ? Using FreeBSD 6.2-R, XFree86-4.7.0, NVIDIA-96.43.01, JDK-1.5.0._13p7 on a Toshiba Satellite Pro 6100 notebook. Fetched current Java 3D (1.5.2 beta1) sources (vecmath, j3d-core, j3d-core-utils) from CVS at java.net, and built JARs for these projects, along with the i386 shared library libj3dcore-ogl.so by adding appropriate ant(1) build files for freebsd-i386. With the JARs and shared library installed in .../jre/lib/ as appropriate, the Java 3D program "Package Info" reports: $ CLASSPATH=dist/j3d-examples.jar \ java org.jdesktop.j3d.examples.package_info.PackageInfo Package Info window: package javax.vecmath, Java 3D API Specification, version 1.5 Specification Title = Java 3D API Specification Specification Vendor = Sun Microsystems, Inc. Specification Version = 1.5 Implementation Vendor = Sun Microsystems, Inc. Implementation Version = 1.5.2 package javax.media.j3d, Java 3D API Specification, version 1.5 Specification Title = Java 3D API Specification Specification Vendor = Sun Microsystems, Inc. Specification Version = 1.5 Implementation Vendor = Sun Microsystems, Inc. Implementation Version = 1.5.2 package com.sun.j3d.utils.universe, version 1.5 Specification Title = Specification Vendor = Sun Microsystems, Inc. Specification Version = 1.5 Implementation Vendor = Sun Microsystems, Inc. Implementation Version = 1.5.2 The Java 3D program "Hello Universe", however, fails: $ CLASSPATH=dist/j3d-examples.jar \ java -Dj3d.debug=true org.jdesktop.j3d.examples.hello_universe.HelloUniverse Java 3D [dev] 1.5.2-pre2-0802011144-experimental 01 Feb 2008 11:44:30 EST Java 3D: J3dDebug.debug enabled Java 3D: concurrent threadLimit = 2 Java 3D: glslVertexAttrOffset = 6 Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Requested array size exceeds VM limit at javax.media.j3d.Canvas3D.(Canvas3D.java:1151) at javax.media.j3d.Canvas3D.(Canvas3D.java:1042) at javax.media.j3d.Canvas3D.(Canvas3D.java:1006) at org.jdesktop.j3d.examples.hello_universe.HelloUniverse.createUniverse(HelloUniverse.java:102) at org.jdesktop.j3d.examples.hello_universe.HelloUniverse.(HelloUniverse.java:125) at org.jdesktop.j3d.examples.hello_universe.HelloUniverse$1.run(HelloUniverse.java:160) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) I get the same result regardless of the maximum Java heap size, so something else must be at play here. [Oh, so close...] Observations ? Suggestions ? Pointers ? -- Dr Gary E RAFE: drgerlists at gmail dot com