However the interesting fact is that, even AVR Studio doesn’t support all of the avr series micro controllers. AVR studio supports AVR series micro controllers. But I don’t recommend searching too much for a Java compiler, because most popular Integrated Development Environments (IDEs) don’t support it. In rare cases there are compilers that accept Java codes too.
Most of them support programming in assembly language while some of them support programs to be written in C language. So for each architecture of Micro controller family, there will be at least one compiler available, supporting that particular micro controller family or a couple of other families. Each family of micro controllers have its own unique type of hardware architecture, instruction sets, register configuration and memories. But things are different for microcontrollers.
For general purpose computers, programs written in one programming language can support different hardware configurations.