Failed to link Cassandra and Thrift sources in Eclipse

I use Cassandra (0.7.2) and Thrift (0.7) with eclipse 3.4 and have problems connecting the source files. I created both Thrift and Cassandra using ant, after creating Cassandra there is a source directory in the / lib assembly that contains the source .jars. Unfortunately, even after binding them to the eclipse, I still do not see the source for anything. To add sources, I'm going to create a source path-> sources tab-> link (here I select the source folder containing the source banks). I also tried ctrl-clicking on classes that complain that no connected source was found, and I'm trying to specify the source path using the browse button. Not lucky yet

I am a little new to eclipse, so of course it could be a user error on my part. Any pointers or hints?

Many thanks

+3
source share
2 answers

I always configured the source as follows:, Properties > Java Build Path > Libraries tabopen the Jar, select "Attach the source", click "Edit" and select the source Jar or Zip file for the Jar.

+2
source

There is also active support for the ant target. If this is not suitable for you, then this is a candidate for release.

+2
source

All Articles