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 < infinity and J(p) is the pth James space. Our main result is that the ideal of weakly compact operators is the unique maximal ideal in B(J(p)). Applications of this result include the following. (i) The Brown-McCoy radical of B(X), which by definition is the intersection of all maximal ideals in S(X), cannot be turned into an operator ideal. This implies that there is no 'Brown-McCoy' analogue of Pietsch's construction of the operator ideal of inessential operators from the Jacobson radical of B(X)/A(X). (ii) For each natural number n and each n-tuple (m(1),...m(n)) in {k(2) \ k is an element of N} U {infinity}, there is a Banach space X such that B(X) has exactly n maximal ideals, and these maximal ideals have codimensions m(1),...,m(n) in S(X), respectively; the Banach space X is a finite direct sum of James spaces and l(p)-spaces. Second, building on the work of Cowers 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(2aleph0) distinct maximal ideals in B(O), where O is the Banach space constructed by Gowers to solve Banach's hyperplane problem.