Flex on linux, not working

whatever I do I get this error:

Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
Error:Cannot determine version for JDK flex3.
Update JDK configuration.

I tried to download different SDK's (3, 3.1, 3.2) but nothing helped. Moving Flex module to own project doesn't helps either..
Setting up SDK works (parsing takes a lot of memory,  400Mb+, had to restart Idea twice because of out of memory errors)..
import flash.display.Sprite suggests me to define JDK, which I do, but without any effects..

Linux  2.6.27-10-generic x86_64 GNU/Linux, Intellij build 9572

thx for any help/pointers


tried official 8.0.1 release, same issues..also, no errors in idea's log files


solved. I had a java file between my actionscript files , that's why intellij complained about invalid JDK