Krutoy222 / watts

Automatically exported from code.google.com/p/watts
0 stars 0 forks source link

TTS library uses an absolute path in Eclipse project #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
and it is not included in the source when doing the SVN checkout from
Google Code.

How does one compile the project?

Original issue reported on code.google.com by kostmo on 17 Sep 2009 at 10:48

GoogleCodeExporter commented 8 years ago
Because that code is by someone else :)  It's available from 
http://code.google.com/p/eyes-free/

Original comment by sco...@gmail.com on 3 Oct 2009 at 7:54

GoogleCodeExporter commented 8 years ago
Thanks for the link.  Maybe it should go on the front page?

Regarding the library path and portability:
I've found that a good convention is to make a "libs" directory just under the 
root
directory (i.e. alongside src/ and res/) that contains all of the .jar files I'm
using.  Then in Eclipse I can specify a *relative* path to those .jar's, so 
that when
the code is downloaded to a machine with a different parent directory layout, it
still works.  Project -> Properties -> Java Build Path -> Libraries -> Add 
JARs... ->
select JAR from libs folder.  If you select "Add External JARs" instead, you 
end up
with an absolute path in the .classpath file
(http://code.google.com/p/watts/source/browse/trunk/.classpath) such as yours:
"/Users/scott/Development/android/TTS_library_stub_1.2_Market.jar"

Original comment by kostmo on 3 Oct 2009 at 11:20

GoogleCodeExporter commented 8 years ago
Probably a good idea, although I just replaced it with the built-in tts support 
in 1.6 
so will have to remember it for next time :)

Original comment by sco...@gmail.com on 4 Oct 2009 at 12:10