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/

Reply via email to