How can I change the compiler that JBuilder uses to compile Java files?

By: Josh Fletcher

Abstract: Understanding what the "target JDK" is used for in JBuilder.


Question:

I've added a JDK to JBuilder but my project still seems to be compiling under JBuilder's compiler. How can I change the compiler that JBuilder uses to compile Java files?
 
Answer:

You can't**

Regardless of the target JDK in use, JBuilder always uses Borland's own Java compiler. There are many reasons for this. The main reason is that most compilers (e.g. "javac") don't provide any of the hooks that JBuilder needs for features like Code Insight. Also, in many cases, JBuilder's own compiler has proven to be more compliant than other Java compilers.

JBuilder's JDK switching feature controls the runtime environment for your project and provides the dependent JDK libraries for compilation but does not change the compiler in use.

** There is an OpenTool available that allows you to use other compilers within JBuilder. Note that this does not *replace* JBuilder's compiler, it simply provides another "wizard" for you to use to compile your code. You can find this tool on CodeCentral, Borland's on-line code repository:

http://codecentral.borland.com

 

Server Response from: ETNASC04