SAN FRANCISCO ­— A growing number of Bay Area law students are heading in-house for the summer.

Hewlett-Packard Co. is launching a corporate summer associate program and will welcome six students in its inaugural class. It’s a first for the Palo Alto company, which has been a maverick in its willingness to hire green lawyers and train them from the ground up.