[mary-users] Running the MaryClientUser example
René Berber
rberber at cactus-soft.dyndns.org
Sat Feb 23 20:16:40 CET 2008
Fabien Snauwaert wrote:
[snip]
> Now, I'm trying to run the MaryClientUser.java example. Compiling
> works fine, no error and the .class are created. However I get stuck
> when trying to run it.
>
> Trying to run it with the following .bat file (with my .java and
> resulting .class files in C:\Program Files\MARY
> TTS\java\de\dfki\lt\mary\client\) :
>
> === BEGIN bat ===
> :: Set the Mary base installation directory in an environment variable:
> set MARY_BASE=C:\Program Files\MARY TTS
> set CLASSPATH="%MARY_BASE%\java\maryclient.jar;%MARY_BASE%\java\java-diff.jar;%MARY_BASE%\java\signalproc.jar;%MARY_BASE%\java\de\dfki\lt\mary\client\MaryClientUser.class;%MARY_BASE%\java\mary-common.jar;%MARY_BASE%\java\freetts.jar;"
Don't put .class files in CLASSPATH. You can use the directory, or a
jar, no class files.
> ::compilation - OK
> cd "C:\Program Files\Java\jdk1.6.0_04\bin"
> ::javac "C:\Program Files\MARY TTS\java\MaryClientUser.java"
> javac "C:\Program Files\MARY
> TTS\java\de\dfki\lt\mary\client\MaryClientUser.java"
>
> :: lancement - K.O. !!!!!!!
> java -cp %CLASSPATH% de.dfki.lt.mary.client.MaryClientUser
Run the compiled class (w/o extension), only name the class (as above)
if it is part of a jar:
java -cp %CLASSPATH% %MARY_BASE%\java\de\dfki\lt\mary\client\MaryClientUser
> === END bat ===
[snip]
Untested, but I think that is the problem. Hope this helps.
--
René Berber
More information about the Mary-users
mailing list