Execution problem of java executable

hi,

In simple i have a java .jar file under c:\program files\ which is a java executable file. Now i am trying to execute the file using double click on it. it is producing "Exception in thread "main" java.lang.NoClassDefFoundError:"

If i put the file under any directory where no white space is occuring with in the file path then it is working fine. How can I run my program. Another think the place of the executable is completely upon the user so please help me with some generalize solution.

thanks in advance.

[541 byte] By [sudiplovesyoua] at [2007-11-27 2:35:27]
# 1

May i know about ur java executable file, what does it do, when u double click on it?

Generally ,If the parent folder name contains white spaces -it might be a problem while u r running it through command-line arguments, becoz, > java app c:\Program Files\....

it will take "c:\Program " as first argument and remaining as next arguments, (becoa, it parses the args by space )

so in this scenario it throws class not found .... type of exceptions,

But, it seems this is not the case with u.. is it?

Regards-

BalajiGaneshReddya at 2007-7-12 2:53:49 > top of Java-index,Desktop,Runtime Environment...