Alrighty...I tried that, still no luck.
It's still giving me the same exception at
org.web3d.x3d.jaxp.X3DSAVAdapter.startDTD(X3DSAVAdapter.java:370) because the
DTD is not one of the two allowed in the list.
Here is my current browser.bat. I've explicitly set the classpaths to the
c:\xj3d\ and c:\xj3d\x3d directories. No change. Would moving my classes to
the x3d directory fix things? That is, do I need to run the browser directly
from the 'apps' directory?
SET CLASSPATH=c:\xj3d;c:\xj3d\x3d
SET CLASSPATH=%CLASSPATH%;..\..\classes
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-jaxp.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-common.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-core.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-eai.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-ecmascript.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-j3d.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-jsai.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-net.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-norender.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-parser.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-render.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-runtime.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-sai.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-sav.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-script-base.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-vecmath.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\jars\xj3d-xml-util.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\lib\j3d-org.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\lib\js.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\lib\gnu-regexp-1.0.8.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\lib\httpclient.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\lib\j3d-org-images.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\lib\uri.jar
SET CLASSPATH=%CLASSPATH%;c:\xj3d\x3d\lib\vlc_uri.jar
cls
%JAVA_HOME%\bin\java -cp %CLASSPATH% Xj3DBrowser
Way to late! Need to sleep :)
Justin Couch wrote:
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".
===========================================================================
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".