Getting filename with entire path without extension

Hi Experts,

need one help.. m writing a shell script for which i need the entire path of the file but without its extension.

running the below script gives error at the statement DIR = `dirname $FILE` --command not found.

#!/bin/bash
jar xvf *jar

for FILE in `find . -name "*.class"`
  do
    echo $FILE
    DIR = `dirname $FILE`
    echo $DIR
 done

Try:

echo "${FILE%.*}"

somehow after rewriting my original script its working now..
thanks a lot for ur help !!!!

the problem is the space

DIR = `dirname $FILE`

should be

DIR=`dirname $FILE`