How do you fix a loose power pin in a laptop (where the cord plugs in)?

My laptop has a loose pin where the laptop power cord goes in. How do i fix this problem? The laptop wont start because the battery wont charge because the power cord doesnt provide power to the laptop. It is a HP ze4125 and was bought in 2002 (i think).
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

It depends on what is broken.  If it's the middle pin, a new jack is needed, because that pin can't be repaired.  If it's a jack that's surface mounted to a PCB, the solder connections may have been broken and re-soldering will fix it.
i repaired a laptop with a broken power jack, but :
-i had to disassemble the laptop completely
-i still had the broken part
then, after resoldering the pin, i had to glue back the plastic parts of the jack in several consecutive actions

maybe this can help a bit for opening the laptop :
Replacement jacks for most laptops are available on eBay now.
You can also go through an electronics supply once you know the size.
They usually look like this.

If the PC Board is badly broken where the jack goes the way to fix that is to solder wires to the copper strips that used to go to the jack and install a panel mount jack in the laptop chassis.
(Panel mount is the kind that goes in the hole and is held in place with a threaded nut.)
Looks like this one (but you not want a closed shunt type).,_PANEL_MOUNT_.html

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Wooky JackCommented:
THis happend to me on my Dell Inspiron 5150.  I ended up buying a new motherboard on ebay.  Also, you might try plugging the ac power supply into a different outlet than what you are currently using or a different building all together to see if that supplies a charge or even powers up the laptop without the battery in it.

Let us know how it goes!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Laptops Notebooks

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.