For law students, It’s the summer of love. A host of them will learn what it’s like to work in-house.

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.