2011/2/10 ராஜ பாண்டி <[email protected]>

> 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 ?
>
>
It seems that you are using relative path in the script.  When you use gnome
menu, the working directory will be your home directory. So check if there
is any relative path in your script.

I hope this may help.

regards,
Aravind J
-- 
// Enjoy your life to the fullest..
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to