Electric fence is the only thing that keeps out groundhogs and raccoons. Probably would work on javelinas. A 4 volt solar charger is enough for most gardens and not too expensive.
I don't think they can get in the back yard as long as my lovely husband remembers to close the gates! Maybe I need an electric prodder for him to remind him!