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.
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)
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.
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!!!
Post by:autobot
Everybody's invited. Except this tiny ad:
a bit of art, as a gift, the permaculture playing cards