Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » NoClassDefFoundError when trying to use jacl
NoClassDefFoundError when trying to use jacl [message #1064827] Fri, 21 June 2013 05:20 Go to next message
Maximilian Girlich is currently offline Maximilian Girlich
Messages: 17
Registered: March 2013
Junior Member
Hi,

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...

Do you have any idea why it doesn't work?

Cheers,
Maximilian
Re: NoClassDefFoundError when trying to use jacl [message #1065687 is a reply to message #1064827] Thu, 27 June 2013 03:27 Go to previous message
Maximilian Girlich is currently offline Maximilian Girlich
Messages: 17
Registered: March 2013
Junior Member
Google and some trying out actually revealed the answer to me! Smile

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?...
Previous Topic:Integration Build: I-201306060709 download page not working
Next Topic:create a plugin for octave
Goto Forum:
  


Current Time: Tue Sep 02 05:25:20 EDT 2014

Powered by FUDForum. Page generated in 0.14339 seconds