2011/2/10 ??? ?????? <vrpcse at gmail.com>
Hi,It seems that you are using relative path in the script. When you use gnome
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 ?