For a Banach space X, let B(X) denote the Banach algebra of all continuous linear operators on X. First, we study the lattice of closed ideals in B(Jp), where 1 < p < ∞ and Jp is the pth James space. Our main result is that the ideal of weakly compact operators is the unique maximal ideal in B(Jp). Applications of this result include the following. (ii) For each natural number n and each n-tuple (m 1 , . . . , mn) in {k 2 | k ∈ N} ∪ {∞}, there is a Banach space X such that B(X) has exactly n maximal ideals, and these maximal ideals have codimensions m 1 , . . . , mn in B(X), respectively; the Banach space X is a finite direct sum of James spaces and p-spaces.Second, building on the work of Gowers and Maurey, we obtain further examples of Banach spaces X such that all the maximal ideals in B(X) can be classified. We show that the ideal of strictly singular operators is the unique maximal ideal in B(X) for each hereditarily indecomposable Banach space X, and we prove that there are 2 2 ℵ 0 distinct maximal ideals in B(G), where G is the Banach space constructed by Gowers to solve Banach's hyperplane problem.