The simplest way:
Get a voltmeter and a solar panel. Connect the panel to your battery and watch the voltage rise. When it gets near 14 volts your battery is charged. Disconnect your solar panel to keep it from overcharging your battery.
Your battery can be damaged if you charge it too fast, so don't get a panel that's too big for your battery. Consult the battery manufacturer's data to see how many amps it can handle, both while charging and discharging. If you happen to have a big panel and a little battery, there are tricks further along in this instructable.
Some solar panels are made just for the purpose of maintaining batteries in vehicles that are parked a long time. They don't go over 13.5 or 14 volts and don't ever produce enough current to damage the battery. These you can just hook to your battery and forget.
If you want to use more power you'll want to get a bigger, higher voltage panel than that.
Here I am running my truck's electrical system off a solar panel wedged in the windshield.
My alternater fell off the engine and the belt broke. I'm driving south so I just set up the panel and drove into the sun, peeking over the panel. Read more of that Haywire Mechanic Story or click on "step two" to read more battery/solar tricks.