Warren,

Thanks very much! As suspected I had a couple of versions of the J3D DLLs
lying around (all these JRE/JDK installations!) and one of them was not the
1.1.1 release.

I'd like to suggest a couple of changes to the demo SimpleSounds to make it
a bit friendlier for non-Sun engineers...

FYI:
The file README.forJ3Ddev states that the argument to SimpleSounds should be
"file:" + path. In fact it should just be the path, as SimpleSounds prepends
"file:" to the argument. This also means that "http:" is not a valid URL
type for an argument.

E.g.

java SimpleSounds .

not

java SimpleSounds file:.

The documentation in the source code also states that the path "." cannot be
used, this is not the case.

If no path is specified it tries to load sounds from the default (!) path:
   \net\java3d\export\java3d\javaone\data\sounds\

which obviously fails!

You could use:
File file = new File( System.getProperty("user.dir") );
url = file.toURL();

to retrieve the current directory when running standalone, and:
getCodeBase()

when running as an Applet.

Sincerely,

Daniel Selman
Tornado Labs Ltd.

Email:   [EMAIL PROTECTED]
Web:     http://www.tornadolabs.com
Phone:   +44 (0131) 343 2513
Fax:     +44 07070 800 483




-----Original Message-----
From: Warren Dale [mailto:[EMAIL PROTECTED]]
Sent: 04 May 1999 13:50
To: [EMAIL PROTECTED]
Subject: Re: [java3d] SimpleSounds error and BenchJ3d


Daniel
I concur that the problem you having with SimpleSounds is a mismatch in the
version of the "j3daudio.jar" file and the rest of your jar files.
Specifically that the j3daudio.jar is older than the rest of the release.
Warren Dale


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

Reply via email to