I don't quite know the state of Java on the DS, but I did find
this page, where someone essentially created a very basic java platform. So as of now, I am not aware of a complete Java compiler for the DS. C/C++ are the only languages I'm aware of that you can use to program the DS, mostly because the libraries developers use are programmed in C.