how can i get the id of a light created through the Light class, so i can removed it later from the world with the method removeLight(int number)
You can't, but you don't have to. Just call dispose() on the light.
:o sometimes i forgot to spend a few seconds and read well the docs thanks egon