The JBuilder compiler has full support for the Java language, including inner classes and JAR files. You can compile from within the IDE, or from the command line using bmj (Borland Maker for Java) or bcj (Borland Compiler for Java).
A Java compiler reads Java source files, determines which additional files need to be compiled, and produces the Java program in the form of .class files containing bytecodes that are the machine code for the Java Virtual Machine (VM). Compiling produces a separate .class file for each class declaration and interface declaration in a source file. When you run the resulting Java program on a particular platform, such as Windows NT, the Java interpreter for that platform runs the bytecodes contained in the .class files.
The following parts of a program can be compiled:
The node can be a project, a package, or a .java file. Packages lower in the project tree hierarchy are built before packages higher in the hierarchy.
Any error messages are displayed in the Error pane that is added to the AppBrowser below the Content pane. Select an error message to display the associated source code. To get help on the error message, go to the Error Messages topic, where error messages are listed by number.
To select another error message in the Error pane, use View|Next Error Message or View|Previous Error Message.
To set compiler options:
Option | Description |
Include Debug Information | Includes symbolic debug information in the .class file when you compile, make, or rebuild a node. |
Show Warnings | Displays compiler warning messages. |
Show Deprecations | Displays all deprecated classes, methods, properties, events, and variables used in the API. If a warning is displayed when compiling, indicating that some deprecated APIs were used, you can turn this option on to see all deprecated APIs. |
Check Stable Packages | Checks files in the packages that are marked "stable" to see whether they and their imported classes need to be recompiled. This option shortens the edit/recompile cycle by not re-checking stable packages.
If this option is off, a given branch of the checking process halts when it reaches a package marked "stable;" it does not look for unstable packages imported by the stable packages. Therefore, with this option, you might need to specify a greater number of modules to compile. By default, the compiler checks packages marked "stable" as well as packages marked "unstable," to determine whether they and their imported classes need to be recompiled. |
Make Packages Stable | If this option is on, the compiler will compile or check all the classes of a package on the first build and mark the package "stable." If this option is off, only the referenced classes of this package will be made, and the package will not be marked "stable."
This option should be off when working with partial projects. This option is especially useful for working with a library of classes with no source available, when some of the class files are not consistent, but not used. |
Obfuscate | Obfuscates your code.
Obfuscation makes your programs less vulnerable to reverse engineering. After decompiling your obfuscated code, the generated source code contains altered symbol names for private symbols. |
Exclude Class | Excludes the selected .class file from a compile. |
Encoding | Specifies the encoding that controls how the compiler interprets characters beyond the ASCII character set. If no setting is specified, the default native-encoding converter for the platform is used. |
Autosave All Files | Automatically saves all files in the project. |
When the Debugger pauses your program, you can look at the current values of the program data items, including class, instance, and local variables; method parameters; and properties (getter/setter method pairs). You can examine and change the values of data items with the following:
Pane, Window, or Dialog | Purpose |
Threads and Stack pane | Displays the running thread groups and threads. The selected thread is the current context. Also displays the sequence of method calls that brought the program to its current state. This is the top pane of the Debug tab, by default. |
Data pane | Displays the values of all data members that are currently in use. This is the bottom pane of the Debug tabbed-page, by default. |
Watch pane | Displays the values of specific data members that you have selected for tracking. This is the Watch tabbed-page. |
Inspector window | Displays the current value of a variable, evaluated in the context used when the Inspector was created. |
Evaluate/Modify dialog box | Evaluates or changes the value of an expression or property. |
The following is an overview of the complete process for debugging Java code. Your code must be compiled with debugging information before you can use the Debugger.
Shift + F9
.