It worked fine for me to install java (through apt-get netbeans from debian/lenny) after repartitioning the N900. I'm able to compile and run (javac/java) JAVA- (.class-)files now on my device.