Jesus was not anti-weapon. Weapons were used throughout the entire Bible for the defense of property, defense of person, defense of wealth. If God gives us something it’s obvious He wants us to defend it.
The Bible (depending on the version you subscribe to) also tells us the battle (or battles ) with our enemies is going to happen. So in addition to personal weapons, we should also have Ranged weapons.
See 1 Samuel 17.
The story is one often quoted from Scripture.