Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 22761, The Painful " File not found 'system.pas' " Compiler Error

by Scott Price Email: Anonymous


Anyone who has had this error in the past has known how painful it is to resolve. Its not a helpful error message.
Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 5.0  to 7.0 2 downloads
Copyright: No significant restrictions


Size: 0 bytes
Updated on Tue, 16 Nov 2004 09:59:32 GMT
Originally uploaded on Tue, 16 Nov 2004 09:55:54 GMT
Description
Anyone who has had this error " File not found: 'system.pas' " whilst trying to compile a project in the past has known how painful it is to resolve.

Its not a helpful error message, and at first glance it kindof appears to be telling a really silly lie.

This error is actually caused by having a duplicated path entry in the Delphi Library Path. It can be a not obvious duplicate if you are using Environment Variables to help control your Component paths.

However many installation programs will just insert the full path where your components have been installed, so whilst there may be duplicates, it may not be easy to visually spot them.

Have a look at the URL provided above. It shows a simple pair of duplicates in the Delphi library path, one that was contolled with an environment variable, and the other installed by the JCL Installer. Both are correct, but this really does seem to confuse Delphi.

The solution is simple. Remove the duplicate path, and your compilation will work again.

Server Response from: ETNACDC03