Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Java 3D / April 2005

Tip: Looking for answers? Try searching our database.

Can't compile TexturedPlane in Java3D Tutorial

Thread view: 
Paul Drallos - 28 Apr 2005 21:31 GMT
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.




Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.