Borland®
Shop
Products Downloads Services Support Partners News & Events Company Community
JBuilder
Documentation
Support

JBuilder OpenTools
Downloads
Basics
Reference
Introduction to PrimeTime
Newsgroup

Additional Resources
Technology Partners
Books
Java Community

 JBUILDER DEVELOPER SUPPORT

Borland JBuilder 3 Compiler Update 2


This software patch is being provided to licensed users of Borland JBuilder.   Installation and use is governed by the applicable license statement/limited warranty for Borland JBuilder.


This update can be used for the Standard, Professional and Enterprise versions of JBuilder 3 for Windows.   This update addresses compiler and dependency checker related issues with certain sets of classes when working between JDK 1.1x and 1.2.  At compile time one would receive errors like:

"Fatal Error; cannot access class xxx.yyy.zzz.SomeBean; no source found; must be compiled, because java.awt.Frame.dispose referenced by class xxx.yyy.zzz.SomeBean has changed."

This update also changes how JBuilder builds and scans dependencies. After applying this update, dependency files will only be built for the classes that are part of your project. Dependency files for classes in archives (JAR or ZIP) or classes that are found on the classpath will not be created. The dependency files will be stored in a directory named "dependency cache" on the outpath for the project.  This new mechanism also changes how dependency files are built when setting up a new JDK or library and should reduce greatly the chance of "Unable to create dependency files" warnings.

This update also includes the fixes of the previous compiler patch.  You do not need to apply both updates.  The earlier update addressed the following problems in Borland JBuilder version 3.0 (Enterprise, Professional and Standard):

  1. Inner classes that extended protected inner classes would produce one of these errors when compiled:

    "Compiler internal error: java.lang.NullPointerException:."
    -- or --
    "Error: (0) internal compiler error: java.lang.ArrayIndexOutOfBoundsException: 0."
    -- or --
    "internal Compiler error: com.borland.compiler.symtab.CompilerError: unexpected type: null"

    There were different inner class patterns in code that could result in this problem; hence the slightly different error messages.
  2. Use of Math.random would throw a NullPointerException in some circumstances, usually auto-conversion in a try/catch block.

Note:  This update is not for use with JBuilder 3 Foundation.  These fixes are already in JBuilder 3 Foundation.


Download Patch:
JB301CompilerUpdate.exe


Installation instructions

There are three parts to applying this update:  Downloading the update file, moving the old files and installing the new files.  For these instructions we will use \JBuilder3 as the installed directory for JBuilder

Download

  1. Download the self-extracting archive JB301CompilerUpdate.exe and place it in your \JBuilder3\bin directory.

Move the old files

  1. Open an explorer window for your \JBuilder3\bin directory
  2. Create a new directory called "OriginalCompiler" as a sub-directory of \JBuilder3\bin
  3. Move the files "bcj.exe", "bmj.exe" and "jnibmj.dll" from your \JBuilder3\bin directory to the \JBuilder3\bin\OriginalCompiler directory.   Note:  If you are an owner of JBuilder Standard you may not have all these files.  Simply move the ones you have.

Installing the new files

  1. Run the JB301CompilerUpdate.exe file that you placed in your \JBuilder3\bin directory.   This will extract the new compiler files.  

International users

The steps given above complete the process for users of the English version of JBuilder 3 for Windows. Users of non-English versions of JBuilder must do the steps above and then finish the process by completing the steps below.

The remaining steps replace the file containing translated compiler messages. This file is in the \JBuilder3\lib\ directory and is named bcj_xx.properties, where 'xx' refers to a two character locale designation (for example, 'bcj_ja.properties' will be found in the Japanese version of JBuilder).

  1. Change to the \JBuilder3\lib\ directory. Rename the original bcj_xx.properties file to bcj_xx_original.properties.
  2. Move all the bcj_xx.properties files from \JBuilder3\bin\ to \JBuilder3\lib\. These files were extracted from JB301CompilerUpdate.exe.

This completes the update process. Note, the Control Panel's "Regional Setting" will determine the language for displaying compiler messages (i.e. which bcj_xx.properties file will be used). English is the default when the \lib\ directory does not contain a translated file for the current "Regional Setting".


File list

In addition to this document, the update consists of the following files:

Filename

Size

bcj.exe

2,278,912 bytes

bmj.exe

2,377,216 bytes

jnibmj.dll

2,448,384 bytes

bcj_de.properties

21,666 bytes

bcj_ja.properties

34,922 bytes

bcj_fr.properties

22,214 bytes

bcj_es.properties

20,916 bytes


 
Site Map Search Contact