It's not a secret anymore!
The moose likes Other JSE/JEE APIs and the fly likes Help needed to run a Java3D program! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Help needed to run a Java3D program!" Watch "Help needed to run a Java3D program!" New topic
Author

Help needed to run a Java3D program!

dinesh Venkatesan
Ranch Hand

Joined: Oct 12, 2006
Posts: 134
Hi Friends,

I am new to Java3D programming. Please have a look at the following code.


I dont have OpenGL1.2 support. Hence, I tried to run the program like this:

java -Dj3d=d3d Hello3D

I am getting the following exception


Any kind help will be highly appreciated.
Thanks in Advance!!!
dinesh.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35223
    
    7
The property to set is called j3d.rend, not j3d; see here for details.
[ April 22, 2007: Message edited by: Ulf Dittmer ]

Android appsImageJ pluginsJava web charts
dinesh Venkatesan
Ranch Hand

Joined: Oct 12, 2006
Posts: 134
Thanks Ulf,

Thanks for the information. But I tried to execute in that way. Now, I am getting the following error.

"The dynamic link library d3d9.dll could not be found in the specified path"

Could you help me in resolving this issue?

Thanks in advance!!!
dinesh.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35223
    
    7
Sounds like Direct3D (possibly version 9) is not installed properly. I have no idea how to check for that or possibly rectify it.
dinesh Venkatesan
Ranch Hand

Joined: Oct 12, 2006
Posts: 134
Thank you very much for pointing out the problem.

Now, I have reinstalled the DirectX 9 and updated it. Now the dll issue is fixed.

But i am getting the following exceptions:

and followed by an error message No compatible device found, please switch to other display mode and try again !

I think i am close to resolving the issues. Can anybody help me in this issue?

regards,
dinesh.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Help needed to run a Java3D program!
 
Similar Threads
Concept question regarding Transform3D
Java3D Animation problem (Loads up components, then skips animation. No errors. Less than 75 lines.)
facing problem while creating a Road/Pathway using Java3D
Help Java3d
Scaling the Image.