Two public school districts and several students and their parents brought this action against Arizona’s Superintendent of Public Instruction and several local officials. The plaintiffs challenged an Arizona statute requiring county treasurers to pay a portion of a school district’s ending cash balance to a state fund used for equalization of funds among school districts. The plaintiffs sought declaratory and injunctive relief holding that the Arizona law violates both the Federal Impact Aid Law, 20 U.S.C. §§ 236-44, and the Supremacy Clause of the United States Constitution.
On defendants’ motion to dismiss, the district court held that the school districts lacked standing to sue the State of Arizona in federal court because the districts are political subdivisions of the state. The district court also concluded that the students failed to allege distinct injury which was not derivative of the injury alleged by the school districts. As a result, the district court dismissed the school districts’ claims with prejudice. Then, in a separate paragraph, the district court dismissed the claims of the students and their parents without prejudice and with leave to file an amended complaint. The plaintiffs collectively appealed without obtaining a certification order pursuant to Federal Rule of Civil Procedure 54(b).
We considered the plaintiffs’ appeal on the merits and affirmed without discussing our jurisdiction. See Indian Oasis-Baboquivari Unified Sch. Dist. v. Kirk, 91 F.3d 1240 (9th *636Cir.1996). We then agreed to rehear the case en banc.
A recent en banc decision of this court has resolved some lingering uncertainty in this circuit about whether certain orders of dismissal are indeed appealable. In WMX Technologies, Inc. v. Miller, 104 F.3d 1133 (9th Cir.1997) (en banc) (“WMX ”), we dismissed an appeal for lack of jurisdiction because the district court’s order of dismissal gave the plaintiff an opportunity to amend certain claims. Recognizing that there has been some discord in our own case law, we made it explicit that an order dismissing a complaint with leave to amend is not a final, appealable order:
We now specifically rule that a plaintiff, who has been given leave to amend, may not file a notice of appeal simply because he does not choose to file an amended complaint. A further district court determination must be obtained. To the extent that any of our cases may suggest a different rule, we now overrule them.
Id. at 1136.
Here, although the district court dismissed the claims of the school district plaintiffs with prejudice, it explicitly gave the remaining plaintiffs leave to amend their complaint. Accordingly, under WMX, the district court’s dismissal order is not appealable. The dismissal of the school districts’ claims with prejudice does not alter this analysis; the Federal Rules of Civil Procedure establish that an order or decision must adjudicate the claims of all of the parties to an action in order to be an appealable final judgment. See Fed.R.Civ.P. 54(b).
Although the parties have not raised the issue of our jurisdiction, we must raise it ourselves. See WMX, 104 F.3d at 1135. As our recent holding in WMX makes clear, we lack jurisdiction to hear this appeal. The plaintiffs’ appeal must be dismissed.
DISMISSED for lack of jurisdiction. No costs allowed.