Converting an Existing JavaTM
Program to a Project

-
Choose Project > New...
-
In the New Project dialog, type
the name of the applet class or main class in the Name field.
-
Specify Applet, Application, or Package as the project type.
-
Click the "Import files from path" option.
Note: So that Cosmo Code can create a project, you must have
write permission on these files. If this isn't possible from the
current path, copy the files to a directory owned by you and then
import them from that directory.
-
Type or choose the directory containing your existing program files.
-
Click OK.
Cosmo Code displays the new project in the Project card and creates the necessary files.
-
If your project is an applet, and its HTML file name is different from
the project name you specified, modify the default run command for the
project by choosing Project > Project Settings... and entering the
correct HTML file name in the Run Command field.
Note: Because the visual builder does not recognize interface
code designed outside Cosmo Code, the visual builder options in the New
Project dialog are unavailable when converting an existing Java program
to a project. You can choose to use the visual builder later to design
a new interface for your project. See Adding a Visual Builder File to Your
Project.

-
Creates and opens a project, displaying all files in the project
directory and any subdirectories.
-
Creates default settings for the
project, including a classpath, build flags, and a run command.
-
Creates a project_name.proj file containing a record of
files in the project and project settings. Do not rename or modify this
file.
-
Creates a .cosmo_projects file in your home directory if
necessary, and adds the project to the .cosmo_projects file.
Do not rename or modify this file.
-
Creates a class database for the
project in a .jsuds directory in the the project directory.
The class database is used by Cosmo Code for generating a class graph
and for collecting results from queries you perform. Do not rename or
modify this directory.

See Also

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