Project Settings Dialog

Access

Purpose

Features

Field Description
Class Path

Specifies the path in which to look for Java classes. The class path is used in the following situations:

  • With the -classpath option in the compile command (also generated automatically by Cosmo Code).

  • When you select Project > Preview with Browser to view your applet in an HTML browser.

  • When Cosmo Code generates the database of classes used in your project that is later used for graphing classes and performing queries over classes.
Note that Cosmo Code does not take into a account any class path you have set as an environment variable in the shell where you started Cosmo Code.
File Search Path

Specifies alternative search path(s) for files to use during a debugging session or while browsing classes.

This is useful when you get a "file not found" messages because your source files are on another machine or you moved the source to a different directory after building the project.
Build Output Directory Specifies where output from the build is to be written. The default is to write compiled files to the project directory.
Run Command Provides the name of the file to be used in running the application or applet. For an application, this should be the name of the .class file that contains the main method. In the case of an applet, it should be the name of the .html file that contains the applet.
Run Arguments Lists any arguments needed to run the program.
Build Flags Lists the flags to be used when compiling your program. The -g flag is provided by default to allow you to view symbol values,. For information on possible flags to use in in the Build Flags field for compiling Java programs, see the javac web page.
Thread Model

Determines the thread model for debugging your program.

Green thread model is a user-level thread package, implemented within a single Unix process, using getcontext()/setcontext(), running on a single processor.

Native threads are POSIX threads. This thread model, using pthreads, takes full advantage of multiprocessor systems.
Binary Linking Selects the Application Binary Interface for executing Java Programs and Cosmo Code components like the Java Debugger and Visual Builder. These flags do not affect the Java Compiler when launched by Cosmo Code.
Publish Source Files Works in conjunction with the Project > Publish > To Directory menu item which copies .class, .html, image, and audio files in the current project to the specified directory. When this option is checked, source files are also copied to the specified directory.
Save as Defaults Button Saves the current project settings as defaults. This means that these settings will be used for all subsequently created projects.
Use Defaults Button Set the project settings back to the default settings.

Guide to the Cosmo Code Development Environment
12-96*277