My problem is probably trivial, but I am stuck, none the less.
A couple of weeks ago, I started going through the Sun's Java 3D Tutorial at:
http://java.sun.com/products/java-media/3D/collateral/
I've gotten all the way to the last chapter which is on Textures.
Several of the examples there depend on a class called TexturedPlane which,
in turn, depends on a class NewTextureLoader.
When I first typed 'javac TexturedPlaneApp.java' I got an error message:
TexturedPlaneApp.java:41: '.' expected
import TexturedPlane;
^
Then I tried to first compile TexturedPlane by typing 'javac TexturedPlane.java' and I got another message:
TexturedPlane.java:37: '.' expec
import NewTextureLoader;
^
So then I compiled NewTextureLoader.java and it compiled without error. Now I have NewTextureLoader.class in the Examples/texture directory.
Then I try compiling TexturedPlane.java again, now that the NewTextureLoader.class is available, but I get the same error as before:
TexturedPlane.java:37: '.' expect
import NewTextureLoader;
^
What am I doing wrong?
I hope you'll forgive my ignorence, but I'm trying to learn both Java and Java 3D at the same time. I'm guessing that there is something in plain Java related to this and should already know, but haven't discovered yet.
Thanks
Paul Drallos - 29 Apr 2005 01:17 GMT
I figured out the reason why I couldn't compile some of the texture examples in the Sun java 3D tutorial. Apparently, the example files were written for an earlier version of Java 3D in which the classes NewTextureLoader and TexturedPlane were not part of the API and needed to be imported.
I only had to comment out the lines calling to import these classes and it worked fine.