I want to use some tcl code in java. Google revealed me that "jacl" should do the job via its function "eval". So I downloaded it and added the jars (itcl.jar, ..., tjcsrc.jar) to the project's (a plugin project) build path. Now the tcl code is needed when a certain handler is triggered. But then, as soon as I try to initiate the tcl interpreter via "Interp jacl = new Interp();" I get a "NoClassDefFoundError".

But the weird thing is that when I create a new java project, add the very same jars to the buildpath and do the same thing, everything works fine...

I didn't expect that a normal Java project and a Plug-in project would have to be treated differently...

Adding the jars as a library didn't have any effect at all. Instead I had to import the jars into my project as a file system (right click on project --> Import --> File System). Then adding them to the classpath - not the folder they are in but rather every single one of them (plugin.xml --> Runtime --> in the Classpath part "Add"...) and also this mysterious point (New and only a single point ".").

Is there any better way to do this?! And why doesn't it work to simply add the library to the build path?...