• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Cannot use Java 3D API with Eclipse? Help!

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have both Eclipse and JCreator. JCreator works fine with Java 3D, but Eclipse is having issues. I believe the main error to be:


The import com.sun.j3d cannot be resolved

Any idea on how to fix this? It makes no sense (to me) why JCreator works and Eclipse is not.

Thanks in advance,
Adam
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most likely Eclipse expects the jar files it uses in different location than JCreator. Look for classpath settings in the Eclipse GUI, and see if those include the Java3D libraries.
 
Adam Wilkins
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, I have done this, but now I am getting the following error during execution. Eclipse sees no errors in the code now...

Exception in thread "main" java.lang.UnsatisfiedLinkError: no j3dutils in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.sun.j3d.utils.timer.J3DTimer$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.j3d.utils.timer.J3DTimer.<clinit>(Unknown Source)
at SwingTimerTest.<init>(SwingTimerTest.java:85)
at SwingTimerTest.main(SwingTimerTest.java:194)
 
Adam Wilkins
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FYI...I am asking the same question in the IDE forum - found it after I posted this one....
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java3D consists of a couple of native libraries, as well as the jar files. Those native libraries -which are missing in your case- need to be in the path indicated by the system property "java.library.path". Take a look at what that looks like on your machine, and put the DLLs (or whatever format you have) in one of the directories mentioned in it.
 
Adam Wilkins
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that did it. I wasn't too sure what I was doing, but I added a new classpath variable pointing to the appropriate directory that had the Java 3D .dll files in there.

Thanks!!!
 
I've never won anything before. Not even a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic