[Ilugc] Exception in jpcap path

  • From: vrpcse@xxxxxxxxx (ராஜ பாண்டி)
  • Date: Thu, 10 Feb 2011 11:16:00 +0530

Hi,

I've created a GUI application which uses jpcap library. i installed
jdk1.6.0_11 in /opt folder and place the libjpcap.so, jpcap.jar files
in /opt/jdk1.6.0_11/jre/lib/ext. i've set the JAVA_HOME variable to my
/opt/jdk1.6.... in .bashrc file .

Then,I've the built the jar file for my application and placed it in
/usr/local/share and created a sh file to run the jar file and placed
it in /usr/local/bin. now when i run that sh file from terminal, it
works perfectly.

Now i add that jar file to GNOME menu as stated here Howto Add entries
in GNOME Menu|Ubuntu Geek. Command i've used is
/usr/local/bin/sh_file_name. now when i clicked the application from
menu, it shows an exception as No class found jpcap/packetreceiver
like that. why it doesn't take the path which i set to JAVA_HOME ?
Anyone please clarify me.

-- 
with regards
Raja Pandi

Other related posts: