A series 40 devices runs J2ME apps and web runtime apps (html + ECMAscript apps).
For J2ME use  Sun Java Wireless Toolkit. It's cross platform
For WRT use Aptana studio and install the NOKIA WRT plugin