[LIST]IllegalAccessException is a checked exception. That is why if it thrown or occurs, then either it should be caught or should be escalate (main class cannot escalate as it the highest level function). Either you add a respected catch or add a throws declaration. If you add catch then the error thrwon in main won't go (I think). So to remove the errors add the throws declaration as already said in the message on top of my message. Hope this your issue is resolved.