I'm writing a new loader for ArcInfo Binary elevation files.  Compiles with
no warnings or errors. Now comes a dumb question:  where do I put it?  When
I put the class file (ArcInfoBLoader.class) in the local directory with its
test program, and put "import ArcInfoBLoader;" in Test.java, I get the error

error: File .\ArcInfoBLoader.class does not contain type ArcInfoBLoader as
expected, but type com.sun.j3d.loaders.ArcInfoB.ArcInfo
BLoader. Please remove the file, or make sure it appears in the correct
subdirectory of the class path.
Test.java:2: Class ArcInfoBLoader not found in import.
import ArcInfoBLoader;
       ^
2 errors

... which seems to want the class file to be under
C:\jdk1.2\jre\lib\com\sun\j3d\loaders\ArcInfoBLoader.  If I put it there,
remove it from the local directory, and set my CLASSPATH to

"C:\jdk1.2\jre\lib";.;

then compiling Test.java yields

Test.java:2: Class ArcInfoBLoader not found in import.
import ArcInfoBLoader;
       ^
1 error

Do I need to add this loader to the distribution jar file?  If not, where
do I put it, and how do I import it?


Pete Tinker
HRL Laboratories, LLC
[EMAIL PROTECTED]
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to