Answer: I'm afraid deterrents such as moth balls won't work on javelinas. Arizona State University has done a study and found that powdered coyote urine might serve as a deterrent, but I cannot find a source for you. They do recommend that you exclude them from your garden by fencing it. Electric fencing is the most effective around gardens; try a single strand approximately 8-10 inches above ground level. It is fairly inexpensive and can be obtained at farm and ranch supply stores. Or, use block walls or chain link fencing (4 feet tall) around the entire yard.
Q&A Library Searching Tips