Buggy code:
public class STARmain implements NativeKeyListener { static view mySearchView = new view ( ) ; static TrayIcon tIcon ; static int spaceState = 0 ; static int controlState = 0 ; public static void main ( String [ ] args ) throws IOException , InterruptedException , InvalidFileFormatException { Model model = new Model ( ) ; Controller controller = new Controller ( ) ; model . setController ( controller ) ; STARmain . mySearchView . setController ( controller ) ; controller . setModel ( model ) ; controller . setView ( STARmain . mySearchView ) ; boolean firstTime = true ; if ( firstTime == true ) { firstTime = false ; File tempFile = new File ( "STAR.ini" ) ; if ( ! ( tempFile . exists ( ) ) ) { PrintWriter writer = new PrintWriter ( "STAR.ini" , "UTF-8" ) ; writer . println ( "[basic<seq2seq4repair_space>options]" ) ; writer . println ( "simple<seq2seq4repair_space>mode<seq2seq4repair_space>=<seq2seq4repair_space>true" ) ; <START_BUG> writer . println ( "directory<seq2seq4repair_space>depth<seq2seq4repair_space>=<seq2seq4repair_space>3" ) ; <END_BUG> writer . close ( ) ; System . out . println ( "I<seq2seq4repair_space>created<seq2seq4repair_space>a<seq2seq4repair_space>new<seq2seq4repair_space>ini<seq2seq4repair_space>file" ) ; } Wini ini = new Wini ( new File ( "STAR.ini" ) ) ; int dirDepth = ini . get ( "basic<seq2seq4repair_space>options" , "directory<seq2seq4repair_space>depth" , int . class ) ; Boolean simpleMode = ini . get ( "basic<seq2seq4repair_space>options" , "simple<seq2seq4repair_space>mode" , boolean . class ) ; model . setDirDepth ( dirDepth ) ; model . setSimpleMode ( simpleMode ) ; } if ( ! ( GraphicsEnvironment . isHeadless ( ) ) ) { if ( SystemTray . isSupported ( ) ) { try { ClassLoader cLoad = Thread . currentThread ( ) . getContextClassLoader ( ) ; BufferedImage tImage = ImageIO . read ( cLoad . getResource ( "icon.png" ) ) ; int tIconWidth = new TrayIcon ( tImage ) . getSize ( ) . width ; STARmain . tIcon = new TrayIcon ( tImage . getScaledInstance ( tIconWidth , ( - 1 ) , Image . SCALE_SMOOTH ) , "STARsearch" ) ; STARmain . mySearchView . setIconImage ( tImage . getScaledInstance ( tIconWidth , ( - 1 ) , Image . SCALE_SMOOTH ) ) ; STARmain . mySearchView . setTitle ( "STARsearch" ) ; PopupMenu pMenu = new PopupMenu ( ) ; MenuItem aboutItem = new MenuItem ( "About" ) ; aboutItem . addActionListener ( new ActionListener ( ) { @ Override public void actionPerformed ( ActionEvent e ) { JOptionPane . showMessageDialog ( null , ( ( ( ( ( ( ( ( ( ( ( "STARsearch" + ( System . lineSeparator ( ) ) ) + "©2015<seq2seq4repair_space>S.T.A.R.<seq2seq4repair_space>Developement<seq2seq4repair_space>Team" ) + ( System . lineSeparator ( ) ) ) + ( System . lineSeparator ( ) ) ) + "Built<seq2seq4repair_space>as<seq2seq4repair_space>a<seq2seq4repair_space>project<seq2seq4repair_space>for<seq2seq4repair_space>CS3141<seq2seq4repair_space>\"Team<seq2seq4repair_space>Software<seq2seq4repair_space>Project\"<seq2seq4repair_space>at<seq2seq4repair_space>Michigan<seq2seq4repair_space>Technological<seq2seq4repair_space>University." ) + ( System . lineSeparator ( ) ) ) + "This<seq2seq4repair_space>simple<seq2seq4repair_space>program<seq2seq4repair_space>allows<seq2seq4repair_space>you<seq2seq4repair_space>to<seq2seq4repair_space>type<seq2seq4repair_space>some<seq2seq4repair_space>inputs<seq2seq4repair_space>into<seq2seq4repair_space>its<seq2seq4repair_space>popup<seq2seq4repair_space>search<seq2seq4repair_space>box<seq2seq4repair_space>and<seq2seq4repair_space>will<seq2seq4repair_space>promptly<seq2seq4repair_space>search<seq2seq4repair_space>for<seq2seq4repair_space>it." ) + ( System . lineSeparator ( ) ) ) + ( System . lineSeparator ( ) ) ) + "Icons<seq2seq4repair_space>made<seq2seq4repair_space>by<seq2seq4repair_space>Freepik<seq2seq4repair_space>from<seq2seq4repair_space>www.flaticon.com" ) + ( System . lineSeparator ( ) ) ) , "About!" , JOptionPane . INFORMATION_MESSAGE ) ; } } ) ; MenuItem exitItem = new MenuItem ( "Exit" ) ; exitItem . addActionListener ( new ActionListener ( ) { @ Override public void actionPerformed ( ActionEvent e ) { System . exit ( 0 ) ; } } ) ; pMenu . add ( aboutItem ) ; pMenu . add ( exitItem ) ; STARmain . tIcon . setPopupMenu ( pMenu ) ; SystemTray . getSystemTray ( ) . add ( STARmain . tIcon ) ; GlobalScreen . registerNativeHook ( ) ; GlobalScreen . addNativeKeyListener ( new STARmain ( ) ) ; Logger logger = Logger . getLogger ( GlobalScreen . class . getPackage ( ) . getName ( ) ) ; logger . setLevel ( Level . OFF ) ; } catch ( AWTException e ) { System . err . println ( e ) ; } catch ( IOException e1 ) { e1 . printStackTrace ( ) ; } catch ( NativeHookException e ) { e . printStackTrace ( ) ; } } Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) { @ Override public void run ( ) { try { GlobalScreen . unregisterNativeHook ( ) ; } catch ( NativeHookException e ) { e . printStackTrace ( ) ; } } } ) ; } } @ Override public void nativeKeyPressed ( NativeKeyEvent arg0 ) { } @ Override public void nativeKeyReleased ( NativeKeyEvent arg0 ) { } @ Override public void nativeKeyTyped ( NativeKeyEvent arg0 ) { } }

Fix:
writer . println ( "directory<seq2seq4repair_space>depth<seq2seq4repair_space>=<seq2seq4repair_space>-1" ) ;