• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Freetts, Eclipse, and Runnable Jar File

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

How do you incorporate Freetts into a java application and export that SINGLE jar file using Eclipse?

I incorporated Freetts into my DBMS Java application in order for the hearing impaired to be able to use it (my DBMS application, that is).
I've successfully used this Freetts augmentation for many, many years.
Now, I'd like to have it Web accessible using JNLP and I would like to be able to use a single signed-jar file (instead of my DBMS jar file and the Freetts jar files in the lib subdirectory).
So, I am trying to use Eclipse and the Export/Runnable-jar-file capability.
I've tried both options:

Extract required libraries into generated JAR
Package required libraries into generated JAR

But I get the errors below whether I use 'Extract' or 'Package'.
They are spurious errors because the application executes just fine when I don't export it to a runnable jar file; and I use 'java -jar' and the 'lib' sub-directory.
IOW, both my code and my environment are just fine - whether I build it using NetBeans, Eclipse or even ant/make.
It's just that trying to get a single jar file seems to be the issue.
Trying to execute the runnable-jar file:

./My_DB.jar
No synthesizer created. This may be the result of any
number of problems. It's typically due to a missing
"speech.properties" file that should be at either of
these locations:

user.home : /home/matthew
java.home/lib: /usr/bin/jdk1.8.0_60/jre/lib

Another cause of this problem might be corrupt or missing
voice jar files in the freetts lib directory. This problem
also sometimes arises when the freetts.jar file is corrupt
or missing. Sorry about that. Please check for these
various conditions and then try again.
Trying to execute the single jar file the conventional way (even though it's supposed to be runnable):

java -jar ./My_DB.jar
No synthesizer created. This may be the result of any
number of problems. It's typically due to a missing
"speech.properties" file that should be at either of
these locations:

user.home : /home/matthew
java.home/lib: /usr/bin/jdk1.8.0_60/jre/lib

Another cause of this problem might be corrupt or missing
voice jar files in the freetts lib directory. This problem
also sometimes arises when the freetts.jar file is corrupt
or missing. Sorry about that. Please check for these
various conditions and then try again.
Here's my speech.properties files (and again, these work just fine using the Freetts 'lib' sub-directory):

ls -lisa /usr/bin/jdk1.8.0_60/jre/lib/speech.properties
20059372 4 -rw-r--r-- 1 root root 425 Oct 5 09:53 /usr/bin/jdk1.8.0_60/jre/lib/speech.properties

^lib/s^s
ls -lisa /usr/bin/jdk1.8.0_60/jre/speech.properties
20058944 4 -rwxr-xr-x 1 root root 425 Oct 5 10:07 /usr/bin/jdk1.8.0_60/jre/speech.properties

ls -lisa /home/matthew/speech.properties
2885497 4 -rw-rw-r-- 1 matthew matthew 425 Jul 31 19:30 /home/matthew/speech.properties

TIA,
Matt
 
reply
    Bookmark Topic Watch Topic
  • New Topic