How play minecraft in school?

The problem might be caused by the computer or the net.Make sure the school computers meet the system requirements and have Java installed. Please note that the firewall might block Minecraft,

and this cannot be changed unless you have administrator access on the individual computer.

If the computer meet the requirements and the firewall doesn't block the game, the problem is caused by the school network.