how to run a project

how can we run any project which is already made by some other person and we have all the files of that.if it is in java or vb.net project and we have the folder that contain all the files of the project