Yeah I looked in the comments for possible solutions first, so I downloaded the updated version of Java. Unfortunately, it seem to still happen.
Sorry for the really late response, I have been dealing with uni stuff and personal issues for the past few months so I didn't give much attention to this project, I guess it may be some issues with the code that I wrote and it doesn't work well with some computers, I am not quite sure how I could fix it. I am sorry that I can not help you out on this 😓