javac

Is it possible to run the Eclipse JDT compiler from the command line, like javac?

I'd like to do some command-line Java compiling of individual Java source files on a machine that has Eclipse installed. However, I don't have permissions to install a full Java SDK on this machine. I understand that Eclipse compiles through its JDT, not using javac. Is is possible to use the Eclipse compiler from the command line? ...

Runtime code generation and compilation

Say I have this code that uses some input (e.g. a URL path) to determine which method to run, via reflection: // init map.put("/users/*", "viewUser"); map.put("/users", "userIndex"); // later String methodName = map.get(path); Method m = Handler.class.getMethod(methodName, ...); m.invoke(handler, ...); This uses reflection so the per...

Using internal sun classes with javac

Is there a way to disable restrictions of javac 1.6.0_22 that prevent me from using JRE internal classes like sun.awt.event.* ? I'm not looking for: an explanation why it is forbidden. suggestion to use different classes suggestion to use reflection suggestion to use ecj/eclipse I just want to know if it is possible or not, and if i...