Where could I get a simple java compiler? No IDE or other extra features needed, just a simple java compiler, which should be under 20mb. I have seen java decompilers, which are about 2-3mb-s so there should be some small java compilers too.
Where could I get a simple java compiler? No IDE or other extra features needed, just a simple java compiler, which should be under 20mb. I have seen java decompilers, which are about 2-3mb-s so there should be some small java compilers too.
The Java compiler is not large. The 64-bit Linux Sun Java5 compiler consists of 79k command line interface and the 6.7M tools JAR archive, which also contains most of the functionality of all other tools (javadoc, jar, ...).
What's large is the standard library, which you need to compile anything. My rt.jar is 38M. There's no good way to get around that. You might be able to create a stripped-down version of the file (e.g. removing the complete java.awt and javax.swing stuff, along with some sun and com.sun stuff), and use that as the bootstrap jar for your compiler runs, but there's no guarantee it won't suddenly crash.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law