Login  Register

Java 3D 64 bit problem.

Posted by Rajesh on Jun 20, 2012; 12:08pm
URL: https://forum.jogamp.org/Java-3D-64-bit-problem-tp4025257.html

Hi,

I am working on a Java application in which I need to use Java 3D. The computer at home is a 32 bit computer and everything works fine.  (I have Linux system - Ubuntu 12.04 LTS) with Oracle JDK 1.7.0u4 and Java 3D 1.5.2.  In the program I have a JPanel to which I added Canvas3D to show my 3D model.  It works well.

I also work on the program at the Office.  Till recently, I had a 32-bit computer (Win XP) at the Office and the program was working there as well.  Now that computer has been replaced by a 64 bit Windows 7 computer.  In that computer I have 64-bit Oracle JDK 1.7.0u5 installed.  When I tried to run my program at office, it gave an exception saying you can't use 32 bit native dlls.  So I downloaded 64-bit version (amd64) of Java 3D, and replaced all three jars and the dlls with the 64 bit versions.  Now the program compiles and runs without any errors.  But, the Canvas3D object doesn't get added to the JPanel and therefore does not show my model. Not only that.  I have put in a few System.out.println lines in the model file just to see till what point it has reached.  Now the Office computer doesn't even print those to the output window.  The other menu items and the program functions normally, but with no display on the JPanel (it just remains cold grey).

Could somebody please explain this weird behaviour to me.  As I said, the same program works perfectly fine on the home computer (of course with 32 bit libraries).  

Thanks,
Rajesh.