开发者

FreeTTS Portability Issue

开发者 https://www.devze.com 2023-04-05 03:58 出处:网络
I\'m writing an application that makes use of Java\'s speech API and FreeTTS. 开发者_高级运维The application works fine when I run it from the Netbeans IDE, but when I try to run it from a jar file on

I'm writing an application that makes use of Java's speech API and FreeTTS. 开发者_高级运维The application works fine when I run it from the Netbeans IDE, but when I try to run it from a jar file on my local machine or on other machines, I get the following error:

"java.lang.NoClassDefFoundError: com/sun/speech/freetts/VoiceManager"

Is there any way for me to include the FreeTTS files in my jar file so it can run anywhere?

Any help would be greatly appreciated.


i had the same problem and i found this page: http://ondra.zizka.cz/stranky/programovani/java/misc/freetts-line-unavailable-classcastexception-kevinvoicedirectory-error-opening-zipfile.texy

I did the easy way, which was to add the freetts installation to my dist folder, change the manifest of my jar on where to find the jsapi.jar, freetts.jar etc. and it is worked. I am just distributing freetts inside my folder.

The hard way is on the link above.

0

精彩评论

暂无评论...
验证码 换一张
取 消