|The problem could be with the power adapter, the power jack on the laptop, or the charging circuit within the laptop as well as the battery. Try a few experiments to determine the problem:|
1- Shut down, remove the battery, plug in and see if it will run on just the AC adapter. If yes, it may be the battery.
2- Borrow a power adapter from someone who has a similar HP laptop and try that to see if it will work. If yes, replace the power adapter. (As an alternative, many computer shops have compatible adapters and might let you try it to see if it 'works' with your system, if it works, consider purchasing it.)
* If still under warranty, stop here and get part replaced or machine serviced under warranty.
3- When the system is plugged in (assuming you confirmed the power adapter is good), wiggle the plug around in the jack a little bit (slowly) while watching both the charging light and the charging indicator (on the monitor), if either of them change state while wiggling the plug, the charging jack may need replacing. You may be able to do this (download instructions from HP site) or you may want to take it in for service.
You have to be a little bit crazy to keep you from going insane.