I remember watching an old Japanese live action on the sci-fi channel, and the most memorable thing was that the swords took these bullets or energy pellets. I think there was a war or an invasion of some kind. Power Ranger-esque costumes and pretty good flick from what I can remember, maybe a female lead.
Abandoned by OP, but film appears to be Mirai Ninja (Cyber Ninja) from 1988. The protagonist Shiranui, a cybernetic ninja, is on a mission to rescue a kidnapped princess. The film is set in a futuristic world where humans & cyborgs are at war with each other.
While attempting to rescue the princess, Shiranui finds himself being forced to fight both sides, and the cyborgs do indeed load energy pellets into their arms and fire them, as seen in the trailer.