java api for bluetooth in Motorola E1000

Hi,

I'm trying to run the example " JavaBluetoothDemo" from the WTK22

on my mobile which is Motorola E1000 .When running the application

it reaches the line:

"LocalDevice localDevice = LocalDevice.getLocalDevice(); "

and then an exception is thrown : "Device initialisation failed"

Do I have to initialize the bluetooth device before ?

and if so , how ?

any idea would be appriciated !

[442 byte] By [e5010253a] at [2007-9-24]