Hello-
I had this same problem and here was my solution.
I just took all the array variables and put them in a file and then
dynamically constructed the array at runtime by loading the file.
Another solution would be to make a few additional helper classes
that each store part of the array and then assemble these subarrays
into one larger array dynamically at runtime.
Jeff Kardatzke
[EMAIL PROTECTED]
______________________________ Reply Separator _________________________________
Subject: [java3d]Long J3d method
Author: [EMAIL PROTECTED] at mime
Date: 2/4/99 11:54 PM
Hi,
I wrote a J3D program which uses a large Shape3D node(more than 2000
vertices). When I compiled it with javac, I got the following warning:
MyShape.java:409: This code requires generating a method with more than 64K
bytes. Virtual machines may refuse the resulting class file.
When I ran it, I got this:
Exception in thread "main" java.lang.ClassFormatError: MyShape (Code of a
method longer than 65535 bytes)
It seems that the methods in my class is too long. In the MyShape class, there
are two big arrays containing the coordinates and coordinate indices required
by GeometryInfo's setCoordinates(float[] coordinates) and
setCoordinateIndices(int[] coordinateIndices). But if I am restricted to use
short methods, how can I construct complicated Shape3D?
I would appreciate any help.
Sincerely,
Wang Yuhang
[EMAIL PROTECTED]
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/
RFC-822-headers:
Received: from CONVERSION-DAEMON by mail.hac.com (PMDF V5.1-12 #26580)
id <[EMAIL PROTECTED]> for "jeffrey a kardatzke"@mime.mail.hac.com;
Fri, 5 Feb 1999 00:01:55 -0800 (PST)
Received: from PROCESS-DAEMON by mail.hac.com (PMDF V5.1-12 #26580)
id <[EMAIL PROTECTED]> for "jeffrey a kardatzke"@mime.mail.hac.com;
Fri, 05 Feb 1999 00:01:54 -0800 (PST)
Received: from fw-tu05.hac.com by mail.hac.com (PMDF V5.1-12 #26580)
with ESMTP id <[EMAIL PROTECTED]> for
"jeffrey a kardatzke"@mime.mail.hac.com; Fri, 05 Feb 1999 00:01:53 -0800 (PST)
Received: from mercury.Sun.COM ([192.9.25.1]) by fw-tu05.hac.com (8.9.0/8.9.0)
with SMTP id BAA26418 for <[EMAIL PROTECTED]>; Fri,
05 Feb 1999 01:04:33 -0700 (MST)
Received: from Eng.Sun.COM (engmail4 [129.144.134.6])
by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id AAA19939; Fri,
05 Feb 1999 00:02:40 -0800
Received: from capra.eng.sun.com (capra.Eng.Sun.COM [129.144.251.81])
by Eng.Sun.COM (SMI-8.6/SMI-5.3) with SMTP id AAA27071; Fri,
05 Feb 1999 00:02:37 -0800
Received: by capra.eng.sun.com (SMI-8.6/SMI-SVR4) id XAA01409; Thu,
04 Feb 1999 23:59:35 -0800
Date: Fri, 05 Feb 1999 15:54:15 +0800
From: Wang Yuhang <[EMAIL PROTECTED]>
Subject: [java3d]Long J3d method
Sender: [EMAIL PROTECTED]
Message-id: <01be50dc$bb138b40$0100007f@localhost>
MIME-version: 1.0
X-Mailer: Microsoft Outlook Express 4.71.1712.3
Content-transfer-encoding: 7BIT
Precedence: bulk
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Priority: 3