Comment faire pour augmenter la java de la taille du segment dans netbeans?

Je suis en train de construire un lexique trie de près de 110000 mots en java avec netbeans. Mon code fonctionne bien, mais il donne une Exception comme suit:

   Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:3209)
at java.lang.String.<init>(String.java:215)
at java.nio.HeapCharBuffer.toString(HeapCharBuffer.java:542)
at java.nio.CharBuffer.toString(CharBuffer.java:1157)
at java.util.regex.Matcher.toMatchResult(Matcher.java:232)
at java.util.Scanner.match(Scanner.java:1270)
at java.util.Scanner.nextLine(Scanner.java:1517)
at lexiconbuild.model.Lexicon.<init>(Lexicon.java:29)
at lexiconbuild.model.LexiconBuild.main(LexiconBuild.java:17)
Java Result: 1

Je me demandais si quelqu'un pouvait m'aider avec l'augmentation de la java heap space dans netbeans.