Near Forttree. When Fortree, exit to the right. Then continue down until you hit the grassy patch with a bunch of rangers. if you continue down (As you should), you'll see a 'lake'. Surf the lake and enter the cave and there is solarbeam.

In the Kanto games u find it on the bottem floor of the Pokemon mansioin

------------------------------------------------------------------------------ PrOuD WiI OwNeR ---Got 2040 skill points in tennis up to date currently.Get a Wii or ur a loserXbox 360 and PS3 are disappointing.DO NOT BUY THEM!