Wang,
I was having the same problem. Rather than assigning data, I read data
from the data file so that one method is not more than 64 k rather array is
byte size is more than 64 K.
THANKS
Vineet Gupta
At 03:54 PM 2/5/1999 +0800, Wang Yuhang wrote:
>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/
>
>
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/