Was World War 1 a just war?

For Austria-Hungary, it was there Archduke was assassinated, but all other countries just wanted war.