Naomi Greenberg wrote:

Does that apply even if I am using the OpenGL driver and not DirectX?


Yes the same java program should be able to run with both versions of the
Java3D library without recompiling. More below....

----- Original Message ----- r
From: "Skygoth" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 26, 2004 7:35 AM
Subject: Re: [JAVA3D] Segmentation fault




If my udnerstanding is correct, Java 3D uses native
calls (directx, etc) so if you compiled under win32
using libraries written for windows 3d graphics, you
will very distinctly have ap roblem on an SGI/unix
box.  You will need to bring the code over and compile
it on the SGI/unix box with the proper environemt.

-nathan



Compiling a java program does not 'package' the native libraries
into the program, so if all she did was to bring the compiled .class
(or .jar) files over to the SGI machine, then they should work.

This assumes (as you said) that the SGI machine has a working Java
runtime environment, and that it has the (both java and native) SGI
Java3D libraries installed.

If you don't have any 'Native code' in your program (are you using
JNI?) then the most likely cause for the 'Segmentation Violation'
is that the way you are using Java3D you have aggravated a bug
in the SGI version of Java3D. I'm not upto date on what the latest
version of J3D is that is available on the SGI platform, but it's also
possible that the one you are using on the SGI side is older than the
J3D libraries oyu compiled with on the Windows side. (Same could
be true for the JVM.)

If you are using Native code, then the most likely place for this problem
would be in your native code. You would *have* to recompile the native
portion of your code on the SGI no matter what.

I would start first by making sure you're using the same versions
to do you compile as you do to run it. (You could do this by compiling
on the SGI side, if you have the JDK there?) If you still have problems
I think you'll have to talk with someone at SGI about their
implementations of Java, and Java 3D.

   -Kyle

NOTE: I do work for sun, but I'm *not* part of the Java3D team. I'm just
a user
of this cool stuff like the rest of you. ;)

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to