Using the command-line tools

JBuilder includes the following command-line tools:

Installing JBuilder also installs the JDK command-line tools, such as:

Setting environment variables for command-line tools

The environment paths for the command-line environment are defined separately from the environment paths for the IDE. The SOURCEPATH and CLASSPATH environment variables must be set so the command-line tools can find the classes required for your program. The standard JBuilder setting for the class path includes several directories and zip files in the jbuilder\ directory. You might need to run jbuilder\bin\setvars.bat to set the environment variables for the command line.

To set your environment variables:

  1. Open a DOS window.
  2. Go to the JBuilder\bin directory.
  3. Type setvars c:\jbuilder (assuming JBuilder is on drive C).
    You can use the set command to compare your environment variables before and after running setvars.bat.

You should not issue the setvars.bat command more than once in a DOS session, because every time the command is issued, additional environment space is used.

Setting the DOS environment space

When you issue the setvars.bat command at the DOS prompt, you might get an Out Of Environment Space error, because only a small amount of environment space is allocated by default.

To increase the DOS environment space:

  1. In the DOS window, click the control menu in the upper left, and choose Properties.
  2. Click the Memory tab to show the Memory options page.
  3. In the Initial Environment drop-down list, select a reasonably large value, such as 2048. The other settings in the page can be left at Auto.
  4. Click OK to close the Properties dialog, and type exit at the prompt, to quit the DOS session.
  5. Start a new DOS session.

You should now be able to issue the setvars.bat command successfully.

Note: These instructions apply to Windows 95 only; they do not apply to Windows NT.