Michael P. McCutcheon wrote:
So the ONLY thing left is my classpath above. What is the correct order? I looked at the HowToInstall, but it does not even list most of those files. (just the bottom ones). How do I order the top set?
You've missed this bit of the install notes, which is about 2/3s of the way down the page:
Environment Variable Setup ---------------------------- PATH and CLASSPATH settings are always a bit tricky. The easiest way to setup the system environment variables is to modify the .bashrc file located in c:/cygwin/home/$userid. Where $user is your system userid. All the examples here assume you have installed the Xj3D codebase into "c:/xj3d". Modify these as needed for your local setup. Here is a sample .bashrc that you can use. Type: x3d to setup your paths for x3d development. Here are the paths you will need. All locations assume the default install directories specified above. export PATH="c:/jdk1.3.1/bin;c:/javacc2.1/bin;$PATH" export CLASSPATH="c:/xj3d;c:/xj3d/x3d" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is the bit you keep failing to do (export is cygwin/unix specific, but the same "set" call can be used in a DOS prompt or using the environmnet variables dialog). Without it, the XML code will never find the DTDs. The JARs and their order make no difference, so long as they are in your classpath. BUT, in failing to include the Xj3D installation directory in the classpath, as the instructions say to, the code will not locate what it's looking for. The DTD files are located in the ./DTD directory, relative to your *classpath* (and loaded using the System.getResourceAsStream() call) not your current working directory. If you don't have the correct classpath, you will never find them and then the entity resolver (org.web3d.x3d.jaxp.X3DEntityResolver) generates those errors you keep seeing. Try setting that and I bet the code runs without a problem. -- Justin Couch http://www.vlc.com.au/~justin/ Java Architect & Bit Twiddler http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
