Converting an Existing JavaTM Program to a Project

  1. Choose Project > New...

  2. In the New Project dialog, type the name of the applet class or main class in the Name field.

  3. Specify Applet, Application, or Package as the project type.

  4. 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.

  5. Type or choose the directory containing your existing program files.

  6. Click OK.

    Cosmo Code displays the new project in the Project card and creates the necessary files.

  7. 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.

When you convert existing program files to a project, Cosmo Code does the following:

See Also

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