Eclipse and Free TTS [message #256566] |
Tue, 29 June 2004 01:27  |
Eclipse User |
|
|
|
Originally posted by: sazib2000.hotmail.com
Hi Develpers,
I have been working on developing a plugin for eclipse that uses Free TTS.
I added the jsapi.jar file as an "external jar file" in build path of
project properties. It compiles just fine but the problem is that when I
run it as a workbench, it gives me an error NoClassDefFound. I know that I
have the Free TTS setup right since I can use it in java application in
eclipse..Its only in plugin when it gives trouble. Can some one pls tell
me how to add a .jar file to eclipse so that it finds it right during run
time.
thanks in advance
M. Rahman
NSF-CSCAP
Winona State University
|
|
|
Re: Eclipse and Free TTS [message #256579 is a reply to message #256566] |
Tue, 29 June 2004 12:17  |
Eclipse User |
|
|
|
I think that you have to configure properly your plugin.xml file rather
than project properties; by the way it seems that some project
properties get reset when plugin.xml or build.xml is saved.
Here is what I did to use additional jar:
- copy the jar in a lib directory in the project root (I guess you could
also leave the jar in the root)
- in the Runtime tab of the plugin.xml editor, add it as Runtime library
with the "new" button. It is a bit misleading as it doesn't show a
browser; just enter "lib/xxx.jar" without quotes.
- in build.xml, the bin.includes entry should look like this:
bin.includes = plugin.xml,\
icons/,\
plugin.jar,\
lib/
If I remember correctly, you can achieve that by adding the lib
directory in the "binary build" part of the "build" tab.
Hope this helps.
Guillaume
Raman wrote:
> Hi Develpers,
> I have been working on developing a plugin for eclipse that uses Free TTS.
> I added the jsapi.jar file as an "external jar file" in build path of
> project properties. It compiles just fine but the problem is that when I
> run it as a workbench, it gives me an error NoClassDefFound. I know that I
> have the Free TTS setup right since I can use it in java application in
> eclipse..Its only in plugin when it gives trouble. Can some one pls tell
> me how to add a .jar file to eclipse so that it finds it right during run
> time.
> thanks in advance
> M. Rahman
> NSF-CSCAP
> Winona State University
>
|
|
|
Powered by
FUDForum. Page generated in 0.05434 seconds