bdn.borland.com

Article #29212: When attempting to compile, the following error comes up: 'System.pas' not found

Problem


After installing Delphi 7, I select File | New | Application and try to compile. It fails with the error: 'System.pas' not found


Resolution


This can happen if your environment path settings inside the IDE isn't setup properly. Inside the Delphi IDE, select Tools | Environment Options and select the Library tab. In the Library Path, make sure you have the following: (keep in mind that your path may vary depending on where you installed Delphi)

c:\Program Files\Borland\Delphi7\Lib
c:\Program Files\Borland\Delphi7\Bin
c:\Program Files\Borland\Delphi7\Imports
c:\Program Files\Borland\Delphi7\Projects\Bpl
c:\Program Files\Borland\Delphi7\Rave5\Lib

BPL output directory should be:
c:\Program Files\Borland\Delphi7\Projects\Bpl

DCP output directory should be:
c:\Program Files\Borland\Delphi7\Projects\Bpl

The Browsing Path should be: (this will vary depending on whether you have Delphi 7 Personal, Professional, or Enterprise)

c:\Program Files\Borland\Delphi7\source\vcl;
c:\Program Files\Borland\Delphi7\Source\Rtl;
c:\Program Files\Borland\Delphi7\source\rtl\Corba45;
c:\Program Files\Borland\Delphi7\source\rtl\Sys;
c:\Program Files\Borland\Delphi7\source\rtl\Win;
c:\Program Files\Borland\Delphi7\source\rtl\common;
c:\Program Files\Borland\Delphi7\source\Internet;
c:\Program Files\Borland\Delphi7\source\clx;
c:\Program Files\Borland\Delphi7\source\websnap;
c:\Program Files\Borland\Delphi7\Source\WebMidas;
c:\Program Files\Borland\Delphi7\Source\Indy;
c:\Program Files\Borland\Delphi7\Source\IntraWeb;
c:\Program Files\Borland\Delphi7\Source\Samples;
c:\Program Files\Borland\Delphi7\Source\Soap;
c:\Program Files\Borland\Delphi7\Source\ToolsAPI;
c:\Program Files\Borland\Delphi7\Source\Xml

Last Modified: 30-OCT-02