How can I make and call packages in Mathematica?

I read some couple of books and also check the help folder in Mathematica concerning packages. I made some packages as well but I couldn’t execute them properly.
I save them in …Addons\packages. But whenever I call the package using NEEDS or GET I keep getting “cannot open file”. can anyone help me on how to solve my problem or a very good explanations and examples on how to make a good package

Packages are not my area of expertise.
At first your package is “.m” file or more “.m” files. (may include additional data or documentation)

See link:
http://stackoverflow.com/questions/4641512/how-to-install-new-packages-for-mathematica

There is written:
Packages are placed on $UserBaseDirectory/Applications or $BaseDirectory/Applications.
If you want more comfort and your own documentations and more features, so you need install Wolfram Workbench.
My answer is blunt, because I do not know all the details and describe them takes many times.

Please also try this tutorial:
http://support.wolfram.com/kb/5648

You can also run a package using the Needs function and supply the full file path to the package.
http://reference.wolfram.com/mathematica/ref/Needs.html

I posted the attached notebook to an earlier question that asked for similar advice. I wrote it for a consulting client of mine. It is not the whole story, but it provides some hopefully useful pointers.

--David
[http://scientificarts.com

](http://scientificarts.com)

Check these too:

http://mathematica.stackexchange.com/questions/29324/creating-mathematica-packages

http://mathematica.stackexchange.com/questions/303/custom-package-development-basic-steps