Thank you for your solution friend. My another need is i manually installed java. Now i want to use Jpcap library with java installed through apt-get, not with java which i manually installed. If i want to use Jpcap library with java installed through apt-get, where i have to place those libraries.
On 12/13/10, ashwin kesavan <ashwin....@gmail.com> wrote: > 2010/12/8 ராஜ பாண்டி <vrp...@gmail.com>: > >> /* Setting the needed files for jpcap in appropriate directories */ >> >> cp /root/project/softwares_req/libjpcap.so >> /opt/jdk1.6.0_11/jre/lib/i386/. >> cp /root/project/softwares_req/jpcap.jar >> /opt/jdk1.6.0_11/jre/lib/i386/. >> cp /root/project/softwares_req/jpcap.jar >> /opt/jdk1.6.0_11/jre/lib/ext/. >> >> export JAVA_HOME="/opt/jdk1.6.0_11/bin/java" >> export PATH="/opt/jdk1.6.0_11/bin:$PATH" >> >> Now when i want to run my java program which uses Jpcap, i have to >> export the paths as i mentioned, if i execute it in a new terminal. So >> where i have to put these jar and .so files so that they can be >> referred automatically with out exporting paths? > > I think you have users set in , so you can add the export to your > bashrc. That is you can add the above lines of export to > > vi ~/.bashrc > > or you can add it to end of /etc/profile > > > HTH > > --ashwin > _______________________________________________ > ILUGC Mailing List: > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc > -- with regards Raja Pandi _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc