[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: How to extend the Java Compiler in your application

Moutaz,
Eclipse Java compiler is in org.eclipse.java.core plugin. From what I see, there is one compiler class exposed in API: org.eclipse.jdt.core.dom.CompilationUnitResolver


However I am not sure if using CompilationUnitResolver is the suggested way to compile your own source code.

The core compiler stuff is in org.eclipse.jdt.internal.compiler.*, and it's used by two tools: JavaBuilder - for compiling source code in Eclipse environment and batch builder, that can be called from command line. You may take a look how these tools do compiling.


Moutaz wrote:
hii alll

i need to add the JavaCompiler into my RCP application, as i may create some classes in a Text files and need to compile it before i save it.

So i take a compiled Code for the class (.class files).

please if u know any suggestion, give it ASAP