Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+21 votes

About gson and json and how they are utilized, I'm still not sure. Even when I imported the Google Library with Gson, I was receiving errors. I downloaded everything and refreshed Maven. Do any of you know how I might figure it out?

asked in CSC305 Fall 2023 by (1 point)

1 Answer

+2 votes

Hmm... you might need to do the "opens yourpackage to com.google.gson" thing inside module-info?

Can you be more specific about the exact error message?

answered by (5.7k points)
+1

I had this error 'Caused by: java.lang.reflect.InaccessibleObjectException' and had to include
'opens edu.augustana to javafx.fxml, com.google.gson;' in my module-info

+1

Certainly! I encountered the same error. Following your advice, I changed "opens edu.augustana" to "javafx.fxml" and also fixed the issue with "com.google.gson." The problem is resolved now. Thanks!

...