<br><br>
<div class="gmail_quote">2009/3/25 Robert Haines <span dir="ltr">&lt;<a href="mailto:rhaines@manchester.ac.uk">rhaines@manchester.ac.uk</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I have seen that only including the directories where jars exist wil not solve the puprose of using those jars. we have to either extract the files from it or either include the directories where the file exists from which jars have been made.<br>
</blockquote><br></div>Have you actually tried including the jars themselves? eg include_directories(/path/to/jar/mylib.jar) This works fine for me and is consistent with how you must list jars in CLASSPATH. Admittedly, using include_directories for this feels a bit clunky, but it does work...<br>
<br>Cheers,<br>Rob<br><font color="#888888"></font></blockquote>
<div> </div>
<div>Thanks Rob i checked it again it works now for me actually i run make from root directory and iam creating a library with some java files listed in my cmakelist as src but when runnng it from root i need to write include_directories(${CMAKE_CURRENT_SOURCE_DIR} in sub dir. cmakelist file. earlier i thought it is not taking jars but actually jars are working fine and it is not taking files from the sub diretory itselg ..</div>

<div> </div>
<div>Generally if we include all files in cmkelist then there is no need to write above line but mihgt require in java case.</div>
<div> </div>
<div>but anyways it works now. thanks for the help..</div>
<div> </div>
<div>ankit</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><font color="#888888"><span id=""></span><br>-- <br>Robert Haines<br><br>Research Associate, RealityGrid          Tel. : +44 (0)161 275 6067<br>
Research Computing Services              Fax. : +44 (0)161 275 0637<br>University of Manchester                 Email: <a href="mailto:rhaines@manchester.ac.uk" target="_blank">rhaines@manchester.ac.uk</a><br>Oxford Road                              Web  : <a href="http://www.realitygrid.org/" target="_blank">www.realitygrid.org</a><br>
Manchester, M13 9PL                           : <a href="http://www.rcs.manchester.ac.uk/" target="_blank">www.rcs.manchester.ac.uk</a><br><br></font></blockquote></div><br>