Important alert: (current site time 7/16/2013 5:28:44 AM EDT)
 

article

[Fatal Error] Project1.dpr(1): File not found: 'System.pas'

Email
Submitted on: 9/13/2004 10:04:47 AM
By: Wayne Barron aka: Carrzkiss  
Level: Beginner
User Rating: By 2 Users
Compatibility: Delphi 7, Delphi 6, Delphi 5
Views: 33462
author picture
(About the author)
 
     I received an Error in Delphi 6.02 when trying to compile a new or existing project. [Fatal Error] Project1.dpr(1): File not found: 'System.pas' This may work on versions below D5, please let me know if it does? This happened to us, now we are here to help you.

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
  1. You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
				

This major issue had me very concerned and puzzled, I had read where others had to reinstall Delphi,
and this was something that I did not really want to do. So I ask some questions in several places and
finally had a person give me information for what had happened to him, and in my case, it was not the
same as his experience, but his information gave me a place to start.

And here is the information for you so that hopefully it will resolve the issue with
" Cannot find system.pas "
If you have just installed a new package or packages, then this could happen
[Fatal Error] Project1.dpr(1): File not found: 'System.pas'
If this happens to you:

Scenario #1 = Check to make sure that the path going to the Components is
Not to long, Delphi has a set Character Length in the Library, so make sure
that the path to your Packages are not too long. (This was not the case with us, but with other’s)

Scenario #2 = If you have installed a new package, "Remove" it from the
[Library Path] and then try to "Compile" a Project, that does not have the
Newly installed components on it.
If you are able to compile then try adding in "Each Directory" to the newly
Installed Components (IF there is more than 1 Directory) and on each added [Library
Path] try to compile, keep on doing this until you get the " cannot find
System.pas " Error again. It may happen on one of the folders, or on the single folder path.
(This applies to multiple folders, and Single Folder)
Copy ALL " .dcu & .dfm & .res" Files from the “New Component Package Folder”
into a folder of the Package Directory (This is only the New Components that are
causing the Error, this is not all the components on your hard drive.). Point the Library
path to this folder. This will get rid of the Error. & If you compile a form with a component
on it that is from this library, and you get an error:

[Fatal Error] Unit1.pas(7): Unit DComponent was compiled
with a different version of DCustomComponent.DcustomComponent


Then you will need to point the library to a certain folder in the Package.
If you only have 1 Package and 1 Folder, then you can try to move a certain .pas
File(s) into the “New Folder” that we created above, keeping track of what you move.
So that if“1” of them causes the “ Cannot find system.pas “ issue, you can delete it out of the Folder.
(Only copy these files over, DO NOT move them over permanently. Keep the original folder/file structure).

Scenario #2 = is what the problem was with mine. And exactly what I wrote here,
Is how I got rid of my " Cannot find system.pas & VCL " Major Issues.

Hope that this will also be the case for other's that may have the same problem in the future.

From: Wayne Barron - Carrz-Fox-Fire Promotions
Problem happened on Sept. 11th 2004 was fixed Sept. 12th 2004


Other 9 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
9/24/2004 4:07:11 PMChuck D

Good to see you back Wayne!
Still have the Weather Project?
Look forward to hearing from you.
(If this comment was disrespectful, please report it.)

 
2/10/2005 12:36:09 AM

asdasd
(If this comment was disrespectful, please report it.)

 
2/10/2005 8:48:17 AMWayne & Carr Barron

What is: asdasd ?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.